Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Turning error reporting off php [closed]

Tags:

php

People also ask

How do I turn off PHP warnings in WordPress?

Either way, you're looking for the “WP_DEBUG” portion of the wp-config. php file. Click the “Save Changes” button in the top right. Once the file is saved, this will disable the PHP warnings in WordPress.

How do I turn off error reporting in xampp?

If you set display_errors=off then all types of error will of. Show activity on this post. Xampp and other web applications have an error interface to show programmers (and users) execution errors or warnings (notices). In order to modify the way Xampp shows errors you have to go control panel and open php.


Tried this yet?

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

Does this work?

display_errors = Off

Also, what version of php are you using?


Read up on the configuration settings (e.g., display_errors, display_startup_errors, log_errors) and update your php.ini or .htaccess or .user.ini file, whichever is appropriate.

It works.