Try these: function getIP() { if (getenv('HTTP_CLIENT_IP')) $ip=getenv('HTTP_CLIENT_IP'); else if ( getenv('REMOTE_ADDR') ) $ip=getenv('REMOTE_ADDR'); else $ip = 'unknown';
return trim($ip); } function getISP($addr,$byIP=true) { /* Can pass in an ip, like 64.xxx.xxx.xx or a domain, like www.aeontrek.com; true if it is an IP; else false */ if ( $byIP ) return trim(gethostbyaddr( trim($addr) )); else return trim(gethostbyname ( trim($addr) )); } -- Nicole "John" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Makes me think...... what exactly the $_SERVER[REMOTE_ADDR] is doing....???? > > Cause it does not really show the actual IP address instead IP address > within its range.... > > e.g. 66.87.25.122 > output 66.87.25.2 > > any idea how to get their actual IP add and if possible the name of their > computer.... > > Also, is it also possible to get or trace the IP add? > > many thanks, > John > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php