このあたりですか?

function preFilter()
{
$_POST = InputEncoding($_POST);
$_GET = InputEncoding($_GET);
}

function InputEncoding($data)
{
static $encoding = null;
static $internal_encoding = null;
if (is_null($encoding)) {
$encoding = 'sjis-win';
}

if (is_null($internal_encoding)) {
$internal_encoding = 'eucjp-win';
}

if (is_array($data)) {
return array_map('InputEncoding', $data);
}else{
return mb_convert_encoding($data, $internal_encoding, $encoding);
}
}

function smarty_outputfilter_encode($output, &$smarty){
return mb_convert_encoding($output, "SJIS-win", "eucJP-win");
}


もしくは?
mb_http_output("SJIS");mb_internal_encoding("EUC-JP");

tokyotyrant

phpからもつかえるのか!
http://www.php.net/manual/ja/class.tokyotyrant.php#tokyotyrant.constants.types

portインストール
sudo port install tokyotyrant -d
途中の確認は空打ちした


peclインストール
sudo /opt/local/bin/pecl install tokyo_tyrant-0.5.0
You should add "extension=tokyo_tyrant.so" to php.ini

とりあえず起動
/opt/local/bin/ttserver
もしくは
sudo /opt/local/sbin/ttservctl start


コマンド
書き込み /opt/local/bin/tcrmgr put localhost hoge hogehoge
読み込み /opt/local/bin/tcrmgr get localhost hoge
リスト  /opt/local/bin/tcrmgr list localhost


やっぱマニュアルは英語ですか?
http://fallabs.com/tokyotyrant/spex.html#serverprog

状況確認
telnet localhost 1978
stats

pear twitter

このへんは0.4.0の情報
http://labs.transrain.net/products/services_twitter/
http://colo-ri.jp/develop/2009/08/jsphon.html

macportのPEAR
sudo /opt/local/bin/pear install

なんかservices_twitterは0.5.0へのバージョンアップで
0.4.0からかなり使い方変わったみたい
jsphonもつかってないし。。。


$username = 'xxxxx';
$password = 'xxxxx';
$tw_count=10;

try{
$twitter = new Services_Twitter($username, $password);
//var_dump($twitter);
echo '';
echo '';
$messages = $twitter->statuses->home_timeline(array('count'=>$tw_count));
foreach ($messages as $msg) {
echo $msg->created_at."
";
echo '<img src="' . $msg->user->profile_image_url . '">';
echo $msg->user->screen_name;
echo '('.$msg->user->name.')';
echo "
";
echo $msg->text;
echo "<hr>";
}
echo "";
//$st->enableJsonConvert();

} catch (Exception $e) {
echo "例外キャッチ:", $e->getMessage(), "\n";
}