Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 30th, 2012  |  syntax: None  |  size: 0.47 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. PHP error handling with .htaccess
  2. # supress php errors
  3. php_flag display_startup_errors off
  4. php_flag display_errors off
  5. php_flag html_errors off
  6. php_value docref_root 0
  7. php_value docref_ext 0
  8.        
  9. ini_set("display_errors", 0);
  10.        
  11. php_flag display_errors off
  12. php_flag log_errors on
  13. php_flag track_errors on
  14. php_value error_log /path/php_error_log
  15.        
  16. ErrorDocument 401 /error401.html
  17. ErrorDocument 403 /error403.html
  18. ErrorDocument 404 /error403.html
  19. ErrorDocument 500 /error500.html