For Programmers: Free Programming Magazines  


Home > Archive > PHP Mirrors > August 2007 > Receive a domain name constant









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Receive a domain name constant
MS Development

2007-08-23, 7:02 pm

I need a way to get the domain on PHP for license script. I know about the
"HTTP_HOST" variable at "$_SERVER" array or at the "getenv" function but I
can't use them because they are changeable. I looking for some constant
value or for some script that will give me the domain.

Notice that the script must to be very fast because it will call every page
refresh.

TNX,

Moshe


Hannes Magnusson

2007-08-23, 7:02 pm

On 8/23/07, MS Development <ms.devlop@gmail.com> wrote:
> I need a way to get the domain on PHP for license script. I know about the
> "HTTP_HOST" variable at "$_SERVER" array or at the "getenv" function but I
> can't use them because they are changeable. I looking for some constant
> value or for some script that will give me the domain.


This is SAPI dependent feature.

This however is not a support forum, please have a look at
http://php.net/support for help.

-Hannes
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com