PHP5.2未満の環境でjson

json_encode()を自分で実装してる人もいたんだけど、以下の方法が取れるならそれに越したことはない。
(っていうかPHPがupdateできればそれで全て解決なんだが)

PHPjson_decode, json_encodeを使えるようにjsonをインストール
http://se-suganuma.blogspot.com/2008/07/phpjsondecode-jsonencode.html


VPSでcコンパイラが入ってないと上記のpecl install jsonで失敗するので、下

ServersMan@VPS configure: error: no acceptable C compiler found in $PATH
http://news.trippyboy.com/serversmanvps/serversmanvps-configure-error-no-acceptable-c-compiler-found-in-path/