Created
September 23, 2013 23:08
-
-
Save nathan-isaac/6678257 to your computer and use it in GitHub Desktop.
PHP error reporting.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Report all errors | |
error_reporting(E_ALL); | |
// Report only Notice, Deprecated, and Strict erros | |
error_reporting(E_ALL ^ (E_NOTICE | E_DEPRECATED | E_STRICT)); | |
// Set to true or false | |
ini_set('display_errors', 0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment