版权声明:原创请注明出处 https://blog.csdn.net/weixin_37657720/article/details/87890960
$ip = $_SERVER["REMOTE_ADDR"]; 或者:getenv('REMOTE_ADDR'); 转化为int $intIP = ip2long($ip); $_SERVER["SERVER_ADDR"]; gethostbyname('www.baidu.com');
$ip = $_SERVER["REMOTE_ADDR"]; 或者:getenv('REMOTE_ADDR'); 转化为int $intIP = ip2long($ip); $_SERVER["SERVER_ADDR"]; gethostbyname('www.baidu.com');