I want in my website the visitor ip has to be shown or it log in seperate file.
As iam successful in doing that,
but my problem is iam not getting the exact IP Adress of the Host or visitor.
Please help me in finding the exact IP Address of the host or visitor.
$logfile= 'ip.html'; $IP = $_SERVER['REMOTE_ADDR']; $logdetails= date("F j, Y, g:i a O T") . ': ' . '<a href=http://www.geobytes.com/IpLocator.htm?GetLocation&ipaddress='.$_SERVER['REMOTE_ADDR'].'>' .$_SERVER['REMOTE_ADDR'].'</a>'; $fp = fopen($logfile, "a"); fwrite($fp, $logdetails); fwrite($fp, "<br>"); fclose($fp);
Please help in finding the exact ip address of the Visitor