0

How can I disable all php errors using my htaccess?
I don't have access to the php.ini file on my server.

Can I hide errors using some code in htaccess?

Phantômaxx
  • 37,352
  • 21
  • 80
  • 110
tim3111
  • 3
  • 1
  • 1
  • 2

2 Answers2

1

Add the following line to your .htaccess file in the Root directory

  php_value display_errors Off 

This tells the apache web server to hide php errors for all directories and sub directories on the server.

Amit Verma
  • 39,545
  • 18
  • 87
  • 107
0

Can you try adding these lines to your .htaccess file and upload it to root directory.

php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
Keep Coding
  • 646
  • 9
  • 24