SUMMER SALE - 90% OFF!
HURRY UP, LIMITED TIME OFFER IS TICKING DOWN
00
DAYS
21
HOURS
01
MINUTES
34
SECONDS

How to turn off PHP error reporting?

Modified on:
error report error_reporting php error display error

To turn off PHP error reporting you can use the following snippet in your PHP script:

error_reporting(0);

Just remember to call this before any other PHP directive.

Alternatively, you can add this line to your .htaccess file (it is located in your public_html folder) to suppress any php error messages:

php_flag display_errors off

 

You can also turn off php error messages by going Member area ->  Hosting control panel -> PHP configuration, choose Disabled for Display Errors.

 

  • Unlimited Number of Websites
  • 24/7 Live Support
  • Easy Website Builder
  • 2X WordPress Optimized Speed
  • 30-Days Money-Back Guarantee
Grab the limited time deal!
$ 3
49
/mo
$26.52
$10.47 for 3 months
Save 61%
Get started