/ 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.
