$_SERVER[REMOTE_HOST];

This will do a reverse lookup on their IP.

Manual Link:
http://ca3.php.net/manual/en/reserved.variables.php#reserved.variables.server

Hope it helps

Tim Thorburn wrote:

Hi,

I'm setting up a simple tracking program for a website I'm working on. Currently it records a visitors IP address, but I would like to be able to do a DNS lookup of these IP addresses. Is this possible with PHP and if so, how is it done? I've been looking through Google, and the very few real results I've come across are large perl programs which make little to no sense to me.

Any help would be greatly appreciated.

Thanks
-Tim





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



Reply via email to