Re: $_SERVER['REMOTE_HOST']

From: Date: Sat, 04 Oct 2003 19:00:04 +0000
Subject: Re: $_SERVER['REMOTE_HOST']
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-165046@lists.php.net to get a copy of this message
John Taylor-Johnston wrote:
PHP is Open Source. This is the general forum. Here is my suggestion: Create $_SERVER['REMOTE_HOST'] as a variable. $gethost = gethostbyaddr($_SERVER['REMOTE_ADDR']); is getting old. Anyone agree?
The problem is that gethostbyaddr is an expesive call, DNS server must be contacted. And most of the time you don't need it.

« previous php.general (#165046) next »