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']
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
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...
$_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 not
* 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.
yes, very
5 matches
Mail list logo