This PHP script will let you generate a 404 page with the right HTTP headers for the browser as well as for search engines.
The script is useful eg. if you want to show a "404 Page Not Found" message depending on some condition. It could be if the page is not found, or if the day of the week is Wednesday, or whatever you like.
The script does one thing only: it shows a 404 page. It does so every time the script is called. You can customize the script to have whatever look and/or extra functions you like, feel free to edit as you please.
The file is now ready for use and will return a 404 when it is requested
The script includes code for the standard Apache 404 error page.
Just click the Download link (right click to download)
Current version: 1