Variable Visions

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);

Keywords:PHP Error Reporting