Re: Remote computer name?

From: Date: Thu, 20 Nov 2003 18:09:00 +0000
Subject: Re: Remote computer name?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-170461@lists.php.net to get a copy of this message
Jas wrote:
I am at a loss here but doesn't $_SERVER['HTTP_HOST'] return the remote computer name? [Snippit used] $ipaddy = $_SERVER['REMOTE_ADDR']; $host = $_SERVER['HTTP_HOST']; // as of now it is getting the name of the server (i.e. localhost, 168.2.2.1) jas
HTTP_HOST returns the name (or ip) of the machine on which php is running. REMOTE_ADDR will return the ip of the client accessing the document. -- By-Tor.com It's all about the Rush http://www.by-tor.com

« previous php.general (#170461) next »