Return to Snippet

Revision: 51569
at September 28, 2011 16:21 by cdohost


Initial Code
if ($_SERVER['REMOTE_ADDR'] !== '127.0.0.1'){
	error_reporting(0);
	ini_set('display_errors','Off'); 
} else {
	// error_reporting(E_ALL ^ E_NOTICE);
	error_reporting(E_ALL);
	ini_set('display_errors','On'); 
}

Initial URL

                                

Initial Description
Only Show Errors in Development Stage (Mostrar erros somente no estágio de desenvolvimento)

Initial Title
PHP - Only Show Errors in Development Stage

Initial Tags
php, error

Initial Language
PHP