Alex Rivera | Logout

What are the reasons why PHP would echo errors, even with error_reporting(0)?

Asked 2008-09-16T23:21:23.193
11

What are some reasons why PHP would force errors to show, no matter what you tell it to disable?

I have tried

error_reporting(0);
ini_set('display_errors', 0); 

with no luck.

Edit
Report

1 Answer

3

To prevent errors from displaying you can

  • Write in a .htaccess: php_flag display_errors 0
  • Split your code in separate modules where the main (parent) PHP file only sets the error_logging and then include() the other files.
answered 2008-09-18T13:06:59.427

Your Answer