RON_ron Posted July 1, 2010 Share Posted July 1, 2010 <?php function getRealIpAddr() { if (!empty($_SERVER['HTTP_CLIENT_IP'])) //check ip from share internet { $ip=$_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) //to check ip is pass from proxy { $ip=$_SERVER['HTTP_X_FORWARDED_FOR']; } else { $ip=$_SERVER['REMOTE_ADDR']; } echo "ip=" . $ip; } ?> Quote Link to comment Share on other sites More sharing options...
trq Posted July 1, 2010 Share Posted July 1, 2010 You are kidding right? Quote Link to comment Share on other sites More sharing options...
RON_ron Posted July 1, 2010 Author Share Posted July 1, 2010 I'm serious. Quote Link to comment Share on other sites More sharing options...
trq Posted July 1, 2010 Share Posted July 1, 2010 This might help you. Quote Link to comment Share on other sites More sharing options...
RON_ron Posted July 2, 2010 Author Share Posted July 2, 2010 Thanks mate. Quote Link to comment 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.