Jared wrote:
foo.php, I get "No input file specified." Instead of the standard 404 error. Is there a way to customize this?

Easy with Apache [1,2], with en ErrorDocument [1] directive. Ex with this in a .htaccess (the FileInfo Override [3] is required) containing this line:

ErrorDocument 404 /Lame_excuses/not_found.html

I've read about it and the consensus is that you can't.

Upgrade consensus :)

Wouldn't it be easy to add a custom 404 error page via php.ini or something?

Easy with Apache (.htaccess or httpd.conf). Ok, not via php.ini.

Christophe

[1] ErrorDocument directive
http://httpd.apache.org/docs/mod/core.html#errordocument

[2] Using XSSI and ErrorDocument to configure customized international server error 
responses
http://httpd.apache.org/docs/misc/custom_errordocs.html

[3] AllowOverride directive
http://httpd.apache.org/docs/mod/core.html#allowoverride

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to