Tuesday, April 27, 2010

Enable Error Reporting On

Enable Error report on in the php using php ini set function.
//Show All Errors error_reporting(E_ALL);
ini_set(’display_errors’,true);
//SHOW All Error
//error_reporting(E_ALL|E_STRICT);
//Show Error without Error
error_reporting(E_ALL ^ E_NOTICE);
//Html err false
error_reporting(E_ALL);
ini_set(’display_errors’, true);
ini_set(’html_errors’, false);
//our own Error Message
$error_descriptions[E_ERROR] = “A fatal error has occured”;
$error_descriptions[E_WARNING] = “PHP issued a warning”;
$error_descriptions[E_NOTICE] = “This is just an informal notice”;
or
$error_descriptions[1] = “A fatal error has occured”;
$error_descriptions[2] = “PHP issued a warning”;
$error_descriptions[8] = “This is just an informal notice”;

No comments:

Post a Comment

 

Followers