手机号----IP api

1 /*
2 
3 *手机号码API
4 
5 */
6 $fphone = "http://tcc.taobao.com/cc/json/mobile_tel_segment.htm?tel=手机号码";  //15920306111
7 
8 $fPArr = iconv("gbk","utf-8",file_get_contents($fphone));
9 echo $fPArr;

<hr>

 1 /*
 2 
 3 *IP-API
 4 
 5 */
 6 
 7 /$ip = "119.129.245.106"; //广州
 8 //$ip = "183.12.197.142";     //深圳
 9 $ip = "183.247.161.185";     //杭州
10 $url = "http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=json&ip=$ip";    
11 $fArr = file_get_contents($url);
12 $json = json_decode($fArr, true);
13 
14 print_r($json);

 

 

 

 

posted @ 2014-03-05 16:57  半颠者  阅读(244)  评论(1编辑  收藏  举报