Error reporting

from the Artful MySQL Tips List

In your development environment, you need error reports. In php.ini uncomment...
error_reporting = E_ALL & ~E_NOTICE
display_errors = On
or begin the PHP script with...
error_reporting( E_ALL );
ini_set( "display_errors", 1 );
Once the code is debugged, in the production environment, of course, turn these off and route error info to an error log.

Last updated 22 May 2009

Return to the Artful MySQL Tips page