PHP Fatal error does not result in HTTP error code 500. When PHP code throws a Fatal error, I would expect Apache to respond with HTTP 500, not a 200?
You should look into using the .htaccess file to control which responses you want your server to perform.
Answered by: Davey C
ASK A QUESTION
More functions PHP QuestionsHello, My question is about general practices. With classes, is error handling usually done inside of the class' functions, or would you just do the bare bones amount of work in the class, and then do error checking when you use the function elsewhere?
How can I access information sent through $_GET on a form?
How can I access information sent through $_POST on a form?
Is there a way to use readfile() and not have it display the byte number at the bottom?
Can we use include ("abc.php") two times in PHP page "makeit.php" ?