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,901
  • 21
  • 84
  • 115
tim3111
  • 3
  • 1
  • 1
  • 2

2 Answers2

2

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
  • 40,709
  • 21
  • 93
  • 115
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
  • 636
  • 9
  • 26