Forum Moderators: coopster
header("HTTP/1.0 404 Not Found"); that's all it takes.
after that, you can do any logging functions you want, display an error message to the user, or whatever. With my 404 page, I have mail sent to my Inbox whenever there's a 404 request; in that mail I include the whole $HTTP_SERVER_VARS collection which helps me debug broken links.
[edited by: httpwebwitch at 5:06 pm (utc) on May 7, 2004]