Page 1 of 1

php_value in .htaccess

Posted: Sat May 12, 2007 4:11 am
by faldo29
Hello!

The php configuration in one of the webhosts I use does not allow for php_value in the .htaccess file. I'm specifically referring to these two lines:
php_value session.use_trans_sid 0
php_value register_globals off

I asked the support staff if they could enable the php_value directive. Instead of allowing it they installed a php.ini file in the s9y subdirectory which has the following three lines:
register_globals = On
session.bug_compat_42 = Off
session.bug_compat_warn = Off

Then the php_value lines were removed from .htaccess. I'm no php expert, so the question is why is register_globals=on while in .htaccess, register_globals is off? Is this an oversight on their part or is this correct?

Your valuable advice is greatly appreciated. :D

Re: php_value in .htaccess

Posted: Mon May 14, 2007 4:03 pm
by garvinhicking
Hi!

Remove "register_globals On"! This setting is not required by s9y and should not be enabled.

So it seems to have been an oversight. Most people ask for enabling this setting (as its disabled by default on many hosts), so they might have mixed it up accidently. :)

Regards,
Garvin