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
Grab the $SERVER_NAME environmental variable. Then parse the variable using
explode on the period in the domain name. Count the number of elements in
the array. and selcct the element you want to use
/dkm
- Original Message -
From: "Liam MacKenzie" <[EMAIL PROTECTED]>
To: "php" <[EMA
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
"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
4 matches
Mail list logo