I'm looking for a script to find an ip address and the associated DNS name. much like this : http://www.webyield.net/domainquery.html Can this be done in php? or Javascript? if not, what can I do this in? I need to be able to log visitors to my site and see where they are from.
Thanks, sharyn
IP address & DNS name
Moderator: General Moderators
http://php.net/manual/en/function.gethostbyaddr.php
http://php.net/manual/en/function.gethostbyname.php
Also see $_SERVER['REMOTE_ADDR'] to get the IP address of the remote user.
http://php.net/manual/en/function.gethostbyname.php
Also see $_SERVER['REMOTE_ADDR'] to get the IP address of the remote user.