>>737
readfileでエラーページの内容をそのまま流しちゃダメなの?
http://jp.php.net/manual/ja/function.readfile.php