Posted By

BrunoDeBarros on 11/26/10


Tagged

errors php display


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

BrunoDeBarros
tyfi84
vehler


Display PHP Errors when they don't show up.


 / Published in: PHP
 

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.

  1. ini_set('display_errors', 1);
  2. ini_set('log_errors', 1);
  3. ini_set('error_log', dirname(__FILE__) . '/error_log.txt');

Report this snippet  

You need to login to post a comment.