RE: [PHP] $HOST_NAME
| From: | S K Rana | Date: | Thu, 30 Nov 2000 16:02:53 +0000 |
| Subject: | RE: [PHP] $HOST_NAME | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-28065@lists.php.net to get a copy of this message | ||
try
getenv($HOST_NAME);
or
getenv('$HOST_NAME');
Also your ISP has to configure $HOST_NAME to work.
*********** REPLY SEPARATOR ***********
On 11/29/00 at 5:17 PM Boget, Chris wrote:
>> > > Just recently, the above PHP variable stopped
>> > working for me. Why? Nothing changed on
>> > our server... I needed it to get the name of the
>> > machine that the webserver is running on. Is
>> > there another variable I can access to get that
>> > info?
>> Try: echo $HOSTNAME
>
>eep, sorry. That's originally what I had. I tried also
>$HOST_NAME and I guess since that was the last
>variable I tried, that's what I put in my subject...
><sheepish grin>
>
>Chris