时间:2021-07-01 10:21:17 帮助过:31人阅读
http://www.bkjia.com/PHPjc/320207.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/320207.htmlTechArticle原来是需要把IP转成十进制 代码如下:$ip = $_SERVER['REMOTE_ADDR']; echo '你的IP:'.$ip.'br /'; $ip_arr = explode(".",$ip); $ip = 0; foreach($ip_arr as $i...