How to disable and suppress PHP error output using htaccess in your hosting
By default, the PHP display_errors setting is set on. In your production environment, it’s a good idea to prevent public display of PHP errors. Ideally, you should edit php.ini file. If you do not have access to php.ini with your hosting plan, you can also do it in htaccess file.
-
How to Disable and Suppress PHP Error Output Using htaccess in Your Hosting
smallwei

smallwei 1:44 pm on October 21, 2009
Add the following lines into your .htaccess file. Be advice, some hosting accounts actually do not support this method. (such as 1and1 hosting)
# supress php 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