PHP displays a blank white page
February 24th, 2008
Often times during development, a PHP page will suddenly display a blank white page. For those of you who don’t know this, it can be very helpful to toggle error display to allow you to view why PHP is showing nothing. The quickest way to do this-if you’re unfamiliar with log files-is to enable PHP to display errors by using .htaccess. Simply add this line to your .htaccess file:
php_value display_errors on
That should do it. Now when you visit the blank error page, you should see some information on why PHP so cowardly quit building your page. Don’t forget to turn the value back off if you’re site is in production, though.
php_value display_errors off
