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); Quote 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. Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/143154-solved-gethostbynameremote_addr/#findComment-750780 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.