Posted By

gdonald on 09/26/06


Tagged

error reporting


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

damarev
vali29


php error reporting


 / Published in: PHP
 

  1. if( $GLOBALS[ 'SITE_DEBUG' ] )
  2. {
  3. error_reporting( E_ALL );
  4. ini_set( 'display_errors', 1 );
  5. ini_set( 'log_errors', 1 );
  6. }
  7. else
  8. {
  9. error_reporting( E_ERROR | E_WARNING | E_PARSE );
  10. ini_set( 'display_errors', 0 );
  11. }

Report this snippet  

You need to login to post a comment.