Tuesday, March 13, 2012

Show all errors in PHP applications

During developing whit PHP, I often run in to just empty page whit out any hint what was going wrong. Using Apache and have set the options "AllowOverride Options" or "AllowOverride All" in the Apache config (done usually by default) you can simply add this lines to the .htaccess file in the directory of the script:
php_value display_errors 1
php_value display_startup_errors 1
php_value error_reporting 2147483647

No comments:

Post a Comment