Created
April 21, 2015 07:59
-
-
Save maranemil/210423541f812030723d to your computer and use it in GitHub Desktop.
PHP Error Log Settings in php scripts
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
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