Debugging PHP Errors

To debug PHP without having to amend the php.ini for all websites add the following in a .htaccess file in the directory of the application. Easy to switch on and off:
php_value display_errors 1
php_value display_startup_errors 1

or

php_flag display_errors on
php_value error_reporting 2039

More examples here
Good IBM article here about error reporting levels etc

Post comment