Skip to content

Instantly share code, notes, and snippets.

@maranemil
Created April 21, 2015 07:59
Show Gist options
  • Save maranemil/210423541f812030723d to your computer and use it in GitHub Desktop.
Save maranemil/210423541f812030723d to your computer and use it in GitHub Desktop.
PHP Error Log Settings in php scripts
ini_set('error_reporting', E_ALL);
ini_set('display_errors', true);
ini_set('display_startup_errors', true);
ini_set('log_errors', 1);
//ini_set("error_log", "/path/to/php-error.log");
ini_set('html_errors',FALSE);
error_log( "Hello log errors!" ); // write some hallo in log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment