PHP-CGI: custom 404 error?

From: Date: Fri, 15 Oct 2004 07:16:23 +0000
Subject: PHP-CGI: custom 404 error?
Groups: php.general 
Request: Send a blank email to php-general+get-199563@lists.php.net to get a copy of this message
I'm running PHP as CGI instead of as an apache module because my hosting 1) suggests it and 2) this way I can compile my own PHP with whatever options I want, including a custom php.ini. Works great except when I load a page that doesn't exist, such as foo.php, I get "No input file specified." Instead of the standard 404 error. Is there a way to customize this? I've read about it and the consensus is that you can't. I don't understand why not, though. Wouldn't it be easy to add a custom 404 error page via php.ini or something?

« previous php.general (#199563) next »