
获取浏览器IP地址 functiongetRemoteIPAddress(){ $ip=$_SERVER['REMOTE_ADDR']; return$ip; } 如果有代理服务器的情况下获取IP functiongetRealIPAddress(){ if(!empty($_SERVER['HTTP_CLIENT_IP'])){//checkipfromshareinternet $ip=$_SERVER['HTTP_CLIENT_IP']; }elseif(!empty($_SERVER['HTTP_X_FORWARDED_F...