/ Published in: PHP
Expand |
Embed | Plain Text
function getRealIpAddr(){ $ip=$_SERVER['HTTP_CLIENT_IP']; $ip=$_SERVER['HTTP_X_FORWARDED_FOR']; } else { $ip=$_SERVER['REMOTE_ADDR']; } return $ip; }
You need to login to post a comment.
iTony on 06/20/09
4 people have marked this snippet as a favorite
Nanobyte
wizard04
batamire
vali29
function getRealIpAddr(){ $ip=$_SERVER['HTTP_CLIENT_IP']; $ip=$_SERVER['HTTP_X_FORWARDED_FOR']; } else { $ip=$_SERVER['REMOTE_ADDR']; } return $ip; }
You need to login to post a comment.