Re: Remote computer name?
| From: | Jason Wong | Date: | Thu, 20 Nov 2003 19:14:25 +0000 |
| Subject: | Re: Remote computer name? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-170479@lists.php.net to get a copy of this message | ||
On Friday 21 November 2003 02:59, Jason Gerfen wrote:
> So in that case there isn't a $_SERVER function to gather the remote
> computer name?
1) print_r($_SERVER) to see what is available
2) it may be available if you have set your webserver to do DNS lookups. But
because it is expensive (ie takes quite a while to do in comparison to simply
serving the webpage) it is usually disabled
3) you can always use gethostbyaddr($_SERVER['REMOTE_ADDR']) whenever it is
needed. But do note that $_SERVER['REMOTE_ADDR'] is not a wholly reliable
indicator of who your client is.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Be valiant, but not too venturous.
Let thy attire be comely, but not costly.
-- John Lyly
*/