Re: [PHP] Best practice to set up register_globals

2006-03-17 Thread chris smith
On 3/18/06, Nicolas Verhaeghe <[EMAIL PROTECTED]> wrote:
>
>
>
> 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
> >,  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?
>
> -
>
> Well that's what I always wondered. The php_info() shows the value as
> set globally and locally. How do you override for a site or domain?

With a htaccess file:

php_flag register_globals on

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Best practice to set up register_globals

2006-03-17 Thread Nicolas Verhaeghe



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 
>,  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?

-

Well that's what I always wondered. The php_info() shows the value as
set globally and locally. How do you override for a site or domain?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Best practice to set up register_globals

2006-03-17 Thread Chuck Anderson

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 ,  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.
*

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Best practice to set up register_globals

2006-03-17 Thread Nicolas Verhaeghe
Would this be set in the apache.conf file or the php.ini file?

-Original Message-
From: Curt Zirzow [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 16, 2006 9:19 PM
To: php-general@lists.php.net
Subject: Re: [PHP] Best practice to set up register_globals


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
,  or the like or even a .htaccess (if enabled).


Curt.
-- 
cat .signature: No such file or directory

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Best practice to set up register_globals

2006-03-16 Thread Curt Zirzow
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 ,  or the like or even a .htaccess (if
enabled).


Curt.
-- 
cat .signature: No such file or directory

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Best practice to set up register_globals locally?

2006-03-16 Thread Chris

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.


If you need to ask a new question please start a new thread - copy the 
email address and hit "new" instead of replying to an existing question. 
It makes it so much easier to follow.


See http://www.php.net/manual/en/ini.php#ini.list and 
http://www.php.net/manual/en/configuration.changes.php


Basically, in apache virtualhost or .htaccess file:

php_flag register_globals on


--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php