logo


Oferta Black Friday

  •  99,9%Program de funcționare
  •  Certificat SSL gratuit
  •  24/7 asistenţă live
  •  30 de zile banii înapoi garantat
Începe

Până la

90

%

OFF

02
ZILE
14
ORE
43
MINUTE
15
SECUNDE
Oferta Black Friday: Găzduire web
De la 0,59€ /Lună!
Vezi Toate Ofertele
×

Baza de cunoștințe

Găseşte articole despre caracteristici, ghiduri de depanare,
şi alte informaţii tehnice referitoare la serviciile de găzduire Hostinger.

How to turn off PHP error reporting?

Modificat la:
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.