Posted By

mikael12 on 10/03/10


Tagged

error-reporting


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

seanpowell
bobbym245
melik
veseo


Error reporting


 / Published in: PHP
 

URL: http://www.nyphp.org/PHundamentals/7_PHP-Error-Handling

  1. // DEVELOPMENT
  2. error_reporting(E_ALL | E_STRICT);
  3. ini_set('log_errors','0');
  4. ini_set('display_errors','1');
  5.  
  6. // PRODUCTION
  7. ini_set('log_errors','1');
  8. ini_set('display_errors','0');
  9. ini_set('error_log', '/full/path/to/your/file/my-errors.log');

Report this snippet  

You need to login to post a comment.