Skip to content

Instantly share code, notes, and snippets.

@anytizer
Created November 27, 2013 06:55
Show Gist options
  • Save anytizer/7671658 to your computer and use it in GitHub Desktop.
Save anytizer/7671658 to your computer and use it in GitHub Desktop.
Enable error logging mode in PHP
<?php
ini_set('log_errors', 'On');
ini_set('display_errors', 'On');
ini_set('error_log', dirname(__FILE__).'/error_log');
error_reporting(E_ALL|E_STRICT);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment