How to enable error_reporting in htaccess

Sometimes it's very important to have the ability to enable all available error_reporting settings for your website without editing the source code. To achieve this, some changes to your .htaccess need to take place.

php_value error_reporting 7
php_flag display_errors On

By the way, you can easily disable the error_reporting by placing the hash sign (#) in the beginning of the line in your .htaccess:

#php_value error_reporting 7
#php_flag display_errors On


Do you know that we offer great web hosting for your PHP applications? We know PHP very well, so you can always ask for technical help, once you become our hosting customer.

Home   Our knowledge base   Sitemap   Contact           Terms of Service   Privacy Policy   Usage Policy           © 2002-2010, All rights reserved, Atlantic Silicon Inc.