php_value in .htaccess

Having trouble installing serendipity?
Post Reply
faldo29
Regular
Posts: 19
Joined: Fri Dec 29, 2006 2:16 am

php_value in .htaccess

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: php_value in .htaccess

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply