Re: Remote computer name?

From: Date: Thu, 20 Nov 2003 19:10:44 +0000
Subject: Re: Remote computer name?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-170476@lists.php.net to get a copy of this message
Jason Gerfen wrote:
John Nichel wrote:
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.
So in that case there isn't a $_SERVER function to gather the remote computer name? Jas
To the best of my knowledge, unless you're running php on a Windoze machine, with domain authenticated Windoze clients, no. -- By-Tor.com It's all about the Rush http://www.by-tor.com

« previous php.general (#170476) next »