Return to Snippet

Revision: 36767
at November 26, 2010 06:07 by BrunoDeBarros


Initial Code
ini_set('display_errors', 1); 
ini_set('log_errors', 1); 
ini_set('error_log', dirname(__FILE__) . '/error_log.txt'); 
error_reporting(E_ALL);

Initial URL


Initial Description
This will make all errors be shown and logged. Useful for when you want to figure out what's wrong but the production server doesn't display any errors.

Initial Title
Display PHP Errors when they don't show up.

Initial Tags
php

Initial Language
PHP