actually, you can also use the getenv function to get them, so you don't have to reference a variable array.
see http://www.php.net/getenv (also http://www.php.net/setenv ) James Cox > -----Original Message----- > From: Sander Steffann [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 02, 2002 11:15 PM > To: Joe Webster; Zeev Suraski > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP-DEV] Re: PHP 5 > > > Hi, > > We do exactly the same with Apache SetEnv: > > SetEnv media_regionaam apeldoorn > SetEnv media_regioid 27 > SetEnv media_module index > > And we get them in the PHP script with > $GLOBALS['HTTP_SERVER_VARS']['media_regionaam']; > > Works great for us. > Sander > > ----- Original Message ----- > From: "Zeev Suraski" <[EMAIL PROTECTED]> > To: "Joe Webster" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Wednesday, January 02, 2002 11:40 PM > Subject: Re: [PHP-DEV] Re: PHP 5 > > > > This could probably be done. It does sound helpful. > > > > Zeev > > > > At 00:29 03/01/2002, Joe Webster wrote: > > >Yes it would have to be in every script in the vhost, location or > directory > > >directive. > > > > > >It could be a constant =) That would make my life easier. > > > > > >Thanks, > > >-Joe > > > > > >"Zeev Suraski" <[EMAIL PROTECTED]> wrote in message > > >5.1.0.14.2.20020102234728.028651c0@localhost">news:5.1.0.14.2.20020102234728.028651c0@localhost... > > > > At 23:33 02/01/2002, Joe Webster wrote: > > > > >I have something that I am currently dealing with: > > > > > > > > > > Using mod_perl with apache, you can put this in a apache > directive > > > > >(vhost, location, directory): > > > > > PerlSetVar somevarname somevarval > > > > > and that would pre-define somevarname equal to somevarval. We > are > > >trying > > > > >to move completely to php (we're 1/2 php and 1/2 perl) however, we > really > > > > >need to be able to set the vars like this. I did look through the > > >mod_php.c > > > > >and I noticed the php_value, php_flag, php_admin_value, and > > >php_admin_flag, > > > > >but nothing for a variable. > > > > > > > > Would it be defined in every PHP script that runs? Does it really > have to > > > > be a variable, or can it be a constant? > > > > > > > > Zeev > > > > > > > > > > > > > > > >-- > > >PHP Development Mailing List <http://www.php.net/> > > >To unsubscribe, e-mail: [EMAIL PROTECTED] > > >For additional commands, e-mail: [EMAIL PROTECTED] > > >To contact the list administrators, e-mail: > [EMAIL PROTECTED] > > > > > > -- > > PHP Development Mailing List <http://www.php.net/> > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > > > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]