I am interested in catching a standard browser "404 page not found" error with php and displaying a custom error page to the user. Are there built in php functions that can handle this? Should I maybe look to environmental variables?
Any suggestions are appreciated.
for apache add the following in httpd.conf: ErrorDocument 404 /custom_404.php
I did and it didn't work... I added it below this line:
ErrorLog logs/error.log
is the placement important... also on my localhost it is HTTP 500 Internal Server Error, not 404...
thanks for your assistance.
ok, so I moved it down to where there is some commmented text that talks about ErrorDocument lines... and it works in Netscape 4.7 but not in IE 5.0...
any thoughts on that?
if you haven't looked at this, there is information pertaining to this here:
http://www.php.net/header