首页 > php代码 > php 获取ip真实地址

php 获取ip真实地址

<?php
function get_ip_place(){
$ip=file_get_contents("http://fw.qq.com/ipaddress");
$ip=str_replace('"',' ',$ip);
$ip2=explode("(",$ip);
$a=substr($ip2[1],0,-2);
$b=explode(",",$a);
return $b;
}
$ip=get_ip_place();
print_r($ip);
?>


永久链接:http://www.phprm.com/code/c9b6e7bcb3f80cf432b21578fa44279f.html

转载随意!带上文章地址吧。

标签:none

发表留言