Hmm

> because $SERVER_NAME is created IF the php
> directive register_globals = on.  this setting
> is off by default as of PHP 4.2.0.  all
> server predefined variables behave this way,
> such as $PHP_SELF, etc.

Yes so I've heard... One thing though.. I use PHP4.1.1... not 4.2.x



Anywayz will try the $_SERVER[xxx] trick

:::::::::::::::::::::::::::::::::::::::::::
:  Julien Bonastre [The-Spectrum.org CEO]
:  A.K.A. The_RadiX
:  [EMAIL PROTECTED]
:  ABN: 64 235 749 494
:  QUT Student :: 04475739
:::::::::::::::::::::::::::::::::::::::::::


----- Original Message -----
From: "Philip Olson" <[EMAIL PROTECTED]>
To: "John Holmes" <[EMAIL PROTECTED]>
Cc: "'The_RadiX'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, April 28, 2002 3:15 AM
Subject: RE: [PHP] Apache: SERVER_NAME gone?


> because $SERVER_NAME is created IF the php
> directive register_globals = on.  this setting
> is off by default as of PHP 4.2.0.  all
> server predefined variables behave this way,
> such as $PHP_SELF, etc.
>
> regards,
> philip
>
>
> On Sat, 27 Apr 2002, John Holmes wrote:
>
> > Use $_SERVER["SERVER_NAME"]
> >
> > ---John Holmes...
> >
> > > -----Original Message-----
> > > From: The_RadiX [mailto:[EMAIL PROTECTED]]
> > > Sent: Sunday, January 21, 2001 10:36 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: [PHP] Apache: SERVER_NAME gone?
> > >
> > > Hi Y'all...
> > >
> > >
> > >
> > > Ok. I just got Apache 1.3.xx and I have PHP4.1.1 and MySQL 3.23.47 on
> > > WinXP Pro...
> > >
> > >
> > > I am currently using IIS5.1 with PHP4 and MySQL but I'd like to move
> > > across to Apache..
> > >
> > >
> > > Catch is?  I have hunted through all the FAQ's for Apache and there is
> > no
> > > mention of how-to configure Apache to actually execute PHP's...
> > >
> > > So I went into the PHP doc's and there is a small mention.. So I
> > finally
> > > get the php's to run..
> > >
> > >
> > > BUT.. when I call $SERVER_NAME in my php's like I always have.. The
> > > variable seems to no longer exist... what gives??
> > >
> > >
> > >
> > > Thanks all.. I am sure it's just a name change or something that
> > Apache
> > > uses.. Or maybe I have to register the PHP global var's somehow
> > through
> > > Apache?? don't really know..
> > >
> > >
> > >
> > >
> > >
> > > Anyway thanks a heap in a advance because I'd really love to start
> > delving
> > > into this great subdomaining/.htaccess world  :)
> > >
> > >
> > >
> > >
> > > Thanks again.. Greatly appreciated...
> > >
> > >
> > > :::::::::::::::::::::::::::::::::::::::::::
> > > :  Julien Bonastre [The-Spectrum.org CEO]
> > > :  A.K.A. The_RadiX
> > > :  [EMAIL PROTECTED]
> > > :  ABN: 64 235 749 494
> > > :  QUT Student :: 04475739
> > > :::::::::::::::::::::::::::::::::::::::::::
> > >
> >
> >
> >
> > --
> > 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
>


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

Reply via email to