denoteone Posted January 30, 2009 Share Posted January 30, 2009 for some reason i am not getting anyone's IP address. Does this look right? $visitor_ip = GetHostByName($REMOTE_ADDR); Link to comment https://forums.phpfreaks.com/topic/143154-solved-gethostbynameremote_addr/ Share on other sites More sharing options...
premiso Posted January 30, 2009 Share Posted January 30, 2009 echo $_SERVER['REMOTE_ADDR']; Will be the correct way to get a user's IP address. Link to comment https://forums.phpfreaks.com/topic/143154-solved-gethostbynameremote_addr/#findComment-750773 Share on other sites More sharing options...
denoteone Posted January 30, 2009 Author Share Posted January 30, 2009 thanks Link to comment https://forums.phpfreaks.com/topic/143154-solved-gethostbynameremote_addr/#findComment-750780 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.