Hey all,
I am running a page on a network here and need to log the computer names that are visiting the page. I have tried using the code below to lookup the computer name of visitors, but the only time it seems to actually log the name is on my machine when im testing the page(because my machine is acting as the server for those tests) otherwise, when it is on the live server, it tends to log : ipaddy.somedomain.com instead of computername.somedomain.com Any idea why there would be a difference? Thanks all!
$name = gethostbyaddr($_SERVER['REMOTE_ADDR']);