Home > Backend Development > PHP Tutorial > php利用QQ获取ip,省份,市

php利用QQ获取ip,省份,市

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 13:02:44
Original
965 people have browsed it

php利用QQ获取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); 
?>
Copy after login
Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
IP address
From 1970-01-01 08:00:00
0
0
0
nginx ban ip problem
From 1970-01-01 08:00:00
0
0
0
Linux static ip does not take effect
From 1970-01-01 08:00:00
0
0
0
javascript - node get ip address
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template