[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] .htaccess override PHP.ini ??



Hello,

If you only want to add them to one site, just insert them in .htaccess like
this

<IfModule mod_php4.c>
    php_flag register_globals Off
    php_flag track_vars On
</IfModule>

<IfModule mod_php3.c>
    php_flag register_globals Off
    php_flag track_vars On
</IfModule>

Just choose one depending on what you're using: php3 or php4
These settings will override the settings in php.ini for the directory you
put them in and all subdirectories.

Jef



Hello,

I have a question. I want to add these two lines:

php_flag register_globals off
php_flag track_vars on

into a .htaccess file, cause I understand that this could be done for a
virtual seperate instead of adding this to php.ini which will count then for
all sites on a server and I need to enable this only for a virtual site.
Further more I'm wandering which makes the server decide to let the
.htaccess file precede above the php.ini ? Is it always first .htaccess and
then php.ini or is that user defined ?

Thanks for any suggestions.

--- Robbert

-------
Some say I am crazy..but the Voices in my head disagree...


_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To Subscribe or Unsubscribe, please go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users