advanced code snippet search
gdonald on 09/26/06
error reporting
09/26/06 06:07am09/26/06 06:05am
2 people have marked this snippet as a favorite
damarevvali29
if( $GLOBALS[ 'SITE_DEBUG' ] ){ error_reporting( E_ALL ); ini_set( 'display_errors', 1 ); ini_set( 'log_errors', 1 );}else{ error_reporting( E_ERROR | E_WARNING | E_PARSE ); ini_set( 'display_errors', 0 );}
Report this snippet Tweet
Comment:
You need to login to post a comment.