Re: Remote computer name?
| From: | Jason Gerfen | Date: | Thu, 20 Nov 2003 18:59:56 +0000 |
| Subject: | Re: Remote computer name? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-170472@lists.php.net to get a copy of this message | ||
So in that case there isn't a $_SERVER function to gather the remote computer name?
Jas
John Nichel wrote:
Jas wrote:-- Jason Gerfen Student Computing Group Marriott Library University of Utah (801) 585-9810 jason.Gerfen@scl.utah.edu "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. FryI 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) jasHTTP_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.