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!
Not really. You can't tell Apache to backtrack and issue a 404 response instead of the regular response it was trying to send (ie, your script). You could try to request a non-existent page on your server and mirror the output and headers but it's more complicated than that. You could try to parse the .htaccess file for the right ErrorDocument but there's an issue with headers as well.
Any particular reason for this, beyond the obvious?