Skip to content

Instantly share code, notes, and snippets.

@theodorocaliari
Last active August 29, 2015 13:56
Show Gist options
  • Save theodorocaliari/8914769 to your computer and use it in GitHub Desktop.
Save theodorocaliari/8914769 to your computer and use it in GitHub Desktop.
<?php
define('WP_DEBUG', false);
@ini_set('log_errors', 1);
@ini_set('display_errors', 0); /* enable or disable public display of errors (use 'On' or 'Off') */
@ini_set('error_log', dirname(__FILE__) . '/wp-content/logs/php-errors.log'); /* path to server-writable log file */
@ini_set( 'error_reporting', E_ALL ^ E_NOTICE ); /* the php parser to all errors, excreportept notices. */
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment