Re: Best practice to set up register_globals

From: Date: Fri, 17 Mar 2006 19:31:26 +0000
Subject: Re: Best practice to set up register_globals
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-232156@lists.php.net to get a copy of this message
Curt Zirzow wrote:
On Thu, Mar 16, 2006 at 08:46:07PM -0700, Nicolas Verhaeghe wrote:
One of my clients has an os commerce install which requires register_globals to be set to on, for some reason. It is set up to off in php.ini, as it should, but I'd like to know what the best fashion would be for me to set it on locally for this domain only.
Assuming you have apache as your webserver.. If you must set it, you can set it per any apache directive, like a <VirtualHost>, <Directory> or the like or even a .htaccess (if enabled). Curt. I'm not sure how they set it up, but at my web host I can put individual php.ini files in the directory the php script files are in.
That means that I can create a php.ini file and add 'register_globals on' in any directory where I need it. Does anyone know how to configure that? -- ***************************** Chuck Anderson • Boulder, CO http://www.CycleTourist.com Integrity is obvious. The lack of it is common. *****************************

« previous php.general (#232156) next »