/ home / customer care

Knowledgebase
You are here: Support > Knowledgebase > Programming

Disable PHP Error Reporting

PHP error_reporting is very useful when development, but shouldn't be enabled in production websites. Below are the methods of disabling error_reporting in PHP.

Within PHP files 

error_reporting (0);

Using .htaccess

php_flag display_errors off
php_value error_reporting 0



Was this answer helpful?

Add to Favourites
Print this Article

Powered by WHMCompleteSolution


Language:
Valid XHTML 1.1 Valid CSS Powered by Apache Powered by MySQL Powered by PHP UTF8 Charset Minimium 800x600 Resolution