PHP Questions Home
Categories
Arrays
Files
Forms
Creating PDFs
PHP Errors
Functions
Images
MySQL
Numbers
Others
Strings
Website

PHP Forums
Forums Index
MySQL Forum
PHP Forum
Flash/Actionscript
Javascript
Web design

More PHP
PHP Functions
Top Questions
Ask a Question
PHP Interview Questions
PHP Jobs
Ecommerce
IT Questions
Business Websites

Sponsors

sponsor ad
My Salary
PHP Developer Salary
Advertise Here

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?


This is because it is a PHP error and not a server error. Code 500 is a server error. Code 200 is correct but misleading as the server has performed fine and loaded a webpage so status OK, or 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 Questions

What is a static variable within a function?

WHAT IS THE CORRECT WAY TO OPEN THE FILE "time.text" AS READABLE?

i want to create a webapp that has 2 fields to fill in with variables there should be 2 random variables to choose from per field there are some meals that both are able to appear in the first and 2nd box if you'd randomize it i want to make a cycle that

How to verify that a function exists before you try using it.

When running a php script, is it possible to have it pull from one txt. file and then a 2nd txt. file?



Custom Search