Turn off PHP error messages via htaccess

From time to time you may encounter a script which has error messages you do not wish to see. Adding the following lines to your .htaccess file will suppress these errors:

php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
php_value docref_root 0
php_value docref_ext 0


  • 144 Users Found This Useful

Was this answer helpful?

Related Articles

Moodle: Notice: Only variable references should be returned by reference

Notice: Only variable references should be returned by reference The issue is with Moodle...

Joomla Warning: Parameter 2 to frontpage()

The error: Joomla Warning: Parameter 2 to frontpage() can occur when you use an out-dated install...

Best WP Plugins

The best wp plugins we believe at this time are W3Total Cache, WordFence, Yoast SEO and iThemes...

phpBB: Switching template to default theme

To change your phpBB theme back to the default which may be necessary when upgrading, log into...

How to turn off magic quotes gpc for Joomla 3

Add the line "php_flag magic_quotes_gpc off" to the .htaccess file. If one does not exist create...