A web developer's blog. PHP, MySQL, CakePHP, Zend Framework, Wordpress, Code Igniter, Django, Python, CSS, Javascript, jQuery, Knockout.js, and other web development topics.

PHP now returns correct status code for error pages

Someone just found out that PHP now sends out php-med-trans-light1.gifthe proper HTTP headers when an error occurs on a page. Let’s say that you have a parse error on your code, the header sent will be something like 500 – instead of the 200 (which means the page is okay, thus confusing search engine robots and other scripts). This is as of PHP 5.2.4

This entry was posted in Uncategorized and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>