How To Disable PHP Fancy Colors On Error Reporting

Home » General » How To Disable PHP Fancy Colors On Error Reporting
General No Comments

To disable the frustrating fancy colors on PHP error reporting and error logs you just need to open your php.ini file and look for the following option:

html_errors = On

and disable it

html_errors = Off

When PHP displays an error, it has the capability of formatting the error message as HTML (for easier reading , they say). This directive controls whether the error message is formatted as HTML or not.

Fortunatelly, this directive is hardcoded to Off for the CLI SAPI.