Variable Visions

Articles PHP PHP-Error-Reporting


tutorials - PHP and Web-Development.

PHP Error Reporting

Published Sun. Sep. 02, 2012


While testing, use these to report PHP errors and notices on screen.

//THIS REPORTS ALL NOTICES AND ERRORS
error_reporting(-1);

//THIS REPORTS ALL ERRORS BUT NOT NOTICES
error_reporting(E_ALL & ~E_NOTICE);


Tag(s): PHP Error Reporting