Just an update to my last post, I got the resolution part working. I just switched it to:
Code:
$store_ip = $_SERVER['REMOTE_ADDR'];
$store_resolved = gethostbyaddr($store_ip);
fwrite($fp, date("F j, Y, g:i a") . " " . $store_ip . " " . $store_resolved . " \n");