Despite the following settings below, I often see the path to the file producing the error. How do I turn off ALL errors no matter what?
error_reporting = E_ALL
display_errors = off
log_errors = off
Despite the following settings below, I often see the path to the file producing the error. How do I turn off ALL errors no matter what?
error_reporting = E_ALL
display_errors = off
log_errors = off
The display error statement is not what you actually want. You should change also the error_reporting value if you don't want to have the messages informing you about the error.
You should try this for all errors
error_reporting = off
or
error_reporting = E_ALL & ~E_DEPRECATED
this will keep letting you know about the errors but they will be invisible to other users..
error_reporting(0);
is limited to PHP files not the php.ini file.
Commented
Jan 3, 2013 at 1:43
error_reporting(0);
and it literally killed the web server. Why is that? I had to remove it before I could bring it back up again.
Commented
Jan 3, 2013 at 2:08