So in that case there isn't a $_SERVER function to gather the remote computer name?
Jas
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.



--
Jason Gerfen
Student Computing Group
Marriott Library
University of Utah
(801) 585-9810
[EMAIL PROTECTED]

"I'm not a robot like you. I don't like having disks crammed into me... unless they're Oreos, and then only in the mouth." ~Phillip J. Fry

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to