Sunday, March 18, 2012

How to check error reporting in php?


// Error report genaral


ini_set(‘display_errors’,1);
error_reporting(E_ALL|E_STRICT);


//only want to see Warning Messages and not Notice Messages


ini_set(‘display_errors’,1);
error_reporting(E_ALL);


//all Error Reporting off, simply use this:


error_reporting(0);