Created
August 26, 2015 06:59
-
-
Save vrkansagara/360dcf690d7634db151d to your computer and use it in GitHub Desktop.
This snippest is for getting errors on currnet working directory.
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
<?php | |
if (function_exists ('ini_set')){ | |
//prevent display errors | |
ini_set("display_errors", 0); | |
//but log them | |
ini_set('log_errors', 1 ); | |
//in the document root | |
ini_set('error_log', getcwd().'/error.log' ); | |
} | |
echo $test; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment