php error reporting


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.