Skip to content

Instantly share code, notes, and snippets.

@faridjame
Last active October 1, 2015 13:47
Show Gist options
  • Save faridjame/2002838 to your computer and use it in GitHub Desktop.
Save faridjame/2002838 to your computer and use it in GitHub Desktop.
PHP: Turn error reporting on
//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