>>11
コードは間違ってないよ。PHP5.0.4で実際に動かしてみたけど大丈夫。
先頭に以下を入れて実行してみて何かエラーメッセージは表示されない?

ini_set('display_errors', true);
ini_set('display_startup_errors', true);
error_reporting(E_ALL);