PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
header('HTTP/1.1 404 Not Found'); doesn't tell Apache to display the custom 404 page that you have configured in httpd.conf, it sends that response back to the browser.... your script is controlling the 404 response directly