[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] PHP or ASP script Help.



on 2/10/00 4:05 PM, Victory Systems ( ebizhosting.com ) at
rclark@xxxxxxxxxxxxxxxxxx wrote:

> 
> I am trying to write an ASP or PHP (NT or UNIX) page that will take the
> address that shows in
> the browser address field and write it out to the page.
> 
> The reason for this may seem strange but I do have a good reason to use
> this
> kind of script.
> 
> I am doing a bit of domain parking and I want to use one page for all of
> the
> parked domains. So when a user types in whatever.com the asp script will
> write that URL to the the page.

Howabout


<? echo $HTTP_HOST; ?> is under construction<br><br>

or if you just want the domain name and the TLD

<?
$pieces = explode(".", $HTTP_HOST);
echo $peices[1] . "." . $peices[2] . " is under construction.";
?> 

This is PHP.

-k