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
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
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
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
"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
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
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
7 matches
Mail list logo