Last active
October 1, 2015 13:47
-
-
Save faridjame/2002838 to your computer and use it in GitHub Desktop.
PHP: Turn error reporting on
This file contains hidden or 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
//Display ALL errors | |
error_reporting(E_ALL); | |
ini_set("display_errors", 1); | |
//only fatal and warnings | |
error_reporting(E_ALL ^ E_NOTICE); | |
//or use this: http://www.codeblog.ch/2012/07/improved-php-error-reporting/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment