Posted By

soup on 05/05/11


Tagged

errors php htaccess


Versions (?)

php errors on in htaccess


 / Published in: PHP
 

Just write this into a .htaccess

  1. ####### PHP DEBUGGING RULES #######
  2. # supress display of php errors, Below three lines will disable the PHP error reporting to user
  3. php_flag display_startup_errors off
  4. php_flag display_errors off
  5. php_flag html_errors off
  6.  
  7. # enable verbose PHP error logging to a file, Below three lines will log the all PHP error, warning and notices in log files at the path specified.
  8. php_flag log_errors on
  9. php_value error_reporting 2047
  10. php_value error_log /home/domain.com/php.error.log
  11. ####### END PHP DEBUGGING RULES #######

Report this snippet  

You need to login to post a comment.