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

Leave a Reply

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>