logo

Black Friday
Sale

  •  99,9 % uptime
  •  Gratis SSL-certifikat
  •  24/7 Live-support
  •  30 dagars öppet köp
Kom igång

Upp Till

90

%

OFF

05
DAGAR
22
TIMMAR
27
MINUTER
54
SEKUNDER
Black Friday Rea: Webbhotell
Från kr9,00 /Månad!
Se Alla Erbjudanden
×

Kunskapsbas

Hitta artiklar om funktioner och felsökningsguider,
och andra tekniska information om Hostingers webbhotelltjänst.

How to turn off PHP error reporting?

Redigerat:
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.