It does exist, if the server is set to resolve automatily.
From PHP docs:
Your web server must be configured to create this variable. For example
in Apache you'll need HostnameLookups On inside httpd.conf for it to exist.
//Simon
John Taylor-Johnston wrote:
Aw gee, $_SERVER['REMOTE_HOST'] (on
* Thus wrote CPT John W. Holmes ([EMAIL PROTECTED]):
> From: "John Taylor-Johnston" <[EMAIL PROTECTED]>
>
>
> > Aw gee, $_SERVER['REMOTE_HOST'] (only REMOTE_ADDR) does not exist in PHP?
> > Bummer.
> > Why is that?
>
> Probably to expensive to look up with every request. Look it up yourself.
ye
$_SERVER['REMOTE_HOST'] = gethostbyaddr($_SERVER['REMOTE_ADDR']);
better?
On Tuesday 19 August 2003 01:18 pm, John Taylor-Johnston wrote:
> Aw gee, $_SERVER['REMOTE_HOST'] (only REMOTE_ADDR) does not exist in PHP?
> Bummer.
> Why is that?
--
"Everything has a natural explanation. The moon is
From: "John Taylor-Johnston" <[EMAIL PROTECTED]>
> Aw gee, $_SERVER['REMOTE_HOST'] (only REMOTE_ADDR) does not exist in PHP?
> Bummer.
> Why is that?
Probably to expensive to look up with every request. Look it up yourself.
http://us2.php.net/manual/en/function.gethostbyaddr.php
---John Holmes
Aw gee, $_SERVER['REMOTE_HOST'] (only REMOTE_ADDR) does not exist in PHP?
Bummer.
Why is that?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
5 matches
Mail list logo