php errors on in htaccess


/ Published in: PHP
Save to your folder(s)

Just write this into a .htaccess


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.