How to display / hide Errors in PHP with htaccess

22 December 2010 by Rick ~ 4 Comments 1635 views

You can turn on or off the PHP errors and warnings using the htaccess file

Display the PHP errors when developing and hide them when live ;)

php_flag display_errors off

Subscribe by E-mail:

« »

4 Comments

  1. I use the PHP method, you can enable or disable error outputs via PHP, so, when I have the GET variable “debug”, I see the error messages. This way I am the only one who sees the error message even in a production enviroment.

     

Add a Comment

Use [code] example piece of code [/code] to insert code into your comment.