Re: PHP code Port
| From: | Joao Prado Maia | Date: | Mon, 09 Oct 2000 22:01:15 +0000 |
| Subject: | Re: PHP code Port | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-19254@lists.php.net to get a copy of this message | ||
On Mon, 9 Oct 2000, Hostmaster wrote:
> I am looking for somting like the following code but writen in PHP.
>
> <script language="vbscript">
> Document.Write Top.Location.HostName
> </script>
>
> The Code you see above, will take the curent URL of the domain
> you are at and write it to the page. If someone can help me do this
> using PHP I would be greatful.
That will be $SERVER_NAME. The manual is your friend by the way :)
http://www.php.net/manual/language.variables.predefined.php
Joao
--
Joao Prado Maia
Web Developer
Kefta, Inc.
T: (415) 391-6881 ext 8008
F: (415) 391-7079