SetEnv variable in .htaccess file

Hi:

My provider uses a .htaccess file to define PHP variables.

I need to set the DISPLAY_ERRORS variable to “NO”

The format that the provider uses is as below:

SetEnv PHP_VER 5_TEST
SetEnv REGISTER_GLOBALS 0

I added the line

SetEnv DISPLAY_ERRORS 0

But that did not set the variable DISPLAY_ERRORS to NO.

Does anyone know what the proper syntax would / could be?

LOL, they don’t.

Changing it to that variable got me:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

The “normal” syntax would be


php_flag display_errors Off

I don’t know if your hoster supports this of course, but it’s worth a try :slight_smile: