Skip to content

Instantly share code, notes, and snippets.

@vrkansagara
Created August 26, 2015 06:59
Show Gist options
  • Save vrkansagara/360dcf690d7634db151d to your computer and use it in GitHub Desktop.
Save vrkansagara/360dcf690d7634db151d to your computer and use it in GitHub Desktop.
This snippest is for getting errors on currnet working directory.
<?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