Skip to content

Instantly share code, notes, and snippets.

@batandwa
Last active October 2, 2015 00:18
Show Gist options
  • Save batandwa/2132970 to your computer and use it in GitHub Desktop.
Save batandwa/2132970 to your computer and use it in GitHub Desktop.
Display and log PHP errors.
<?php
ini_set('display_errors', 1);
ini_set('log_errors', 1);
ini_set('error_log', dirname(__FILE__) . '/error_log_' . date('Ymd') . '.log');
error_reporting(-1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment