Earlier posts said that if you did:
$address = gethostbyaddr($REMOTE_ADDR);
then you get the hostname. I set up a script that logs the person's visit and saves it to a text file:
<?
$address = gethostbyaddr($REMOTE_ADDR);
$time = date("h:i:s D d M Y");
$add = $address." ".$time."<br>";
fwrite($newfile, $add);
fclose($newfile);
?>
This works and a text file is appended to each time but the hostname is always called localhost. How do i find out what domain they came from like aol or something?
Thanks.