Re: [PHP] subdomain

2002-09-10 Thread Liam MacKenzie
m: "Dennis Moore" <[EMAIL PROTECTED]> To: "Liam MacKenzie" <[EMAIL PROTECTED]>; "php" <[EMAIL PROTECTED]> Sent: Wednesday, September 11, 2002 12:31 PM Subject: Re: [PHP] subdomain Grab the $SERVER_NAME environmental variable. Then parse the variable usin

Re: [PHP] subdomain

2002-09-10 Thread Dennis Moore
ED]> To: "php" <[EMAIL PROTECTED]> Sent: Tuesday, September 10, 2002 8:55 PM Subject: [PHP] subdomain > G'day everyone, > > I have a dilemma... > I'm running BIND locally, with a wildcard A record. > That means that if someone goes to http://somebullshit.mydo

Re: [PHP] subdomain

2002-09-10 Thread Tyler Longren
Try this: $subdomain = $_SERVER["SERVER_NAME"]; And then get all the text before the first ".". Tyler On Wed, 11 Sep 2002 10:55:56 +1000 "Liam MacKenzie" <[EMAIL PROTECTED]> wrote: > G'day everyone, > > I have a dilemma... > I'm running BIND locally, with a wildcard A record. > That means tha

[PHP] subdomain

2002-09-10 Thread Liam MacKenzie
G'day everyone, I have a dilemma... I'm running BIND locally, with a wildcard A record. That means that if someone goes to http://somebullshit.mydomain.com/ they'll get my page up. What I want to do is catch that subdomain into a variable... Is there a PHP global that can get that? So, if someo

Re: [PHP] SubDomain Redirect

2001-06-23 Thread Henrik Hansen
"Jon Shoberg" <[EMAIL PROTECTED]> wrote: > Using Apache ... > > Any thoughts no how I can create a link: > > http://cars.mydomain.com and have it redirect to > http://www.mydomain.com/index.php?id=cars > > and > > http://www.mydomain.com/cars and have it redire

[PHP] SubDomain Redirect

2001-06-22 Thread Jon Shoberg
Using Apache ... Any thoughts no how I can create a link: http://cars.mydomain.com and have it redirect to http://www.mydomain.com/index.php?id=cars and http://www.mydomain.com/cars and have it redirect to http://www.mydomain.com/jump.php?id=cars without mess

[PHP] Subdomain-Service

2001-01-14 Thread Bastian
Hello! Are there any scripts to create an Subdomain-Service (yourname.domain.com) without having Wildcards? I've got a danish-script, but it's not that, what I expected, becuase it needs wildcars. Thanks!! Reagards, Bastian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e