摘要:
微信公众平台搭建之二(手机号归属)接上文,增加一个IP查询功能调用新浪接口查IP,function city_ip($ip) {$url = 'http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js&ip=' . $ip;$f = new SaeFetchurl();$str = $f->fetch($url);preg_match('|var remote_ip_info =(.*)\;|',$str,$ar);$obj = json_decode($ar[1]);$city =$ 阅读全文
摘要:
微信公众平台搭建之一(单词翻译)接上文,增加一个手机归属查询。公众账号:baiducha下面是使用淘宝提供的接口查询手机号归属:function taobao_m($word){ $tmapi = "http://tcc.taobao.com/cc/json/mobile_tel_segment.htm?tel=".$word; $fetch = new SaeFetchurl(); $content = $fetch->fetch($tmapi); $content = iconv("gb18030","UTF-8",$con 阅读全文