Collection exercise (ix) PHP get mobile phone number attribution to _php tutorial

Source: Internet
Author: User
See friends in the group in the afternoon to , so I looked a little bit. Find the cell phone number to belong toEnquiryBasically, it's all from< span="">provided by the. The major sites have taken the company's interface, so I also want to see how to get the information I need, mobile phone online no free interface, to inquire about the cell phone attribution can only send the request on his site page....... This method doesn't mean anything.

So I continued to find the solution (thanks to the mobile Internet) in the touchscreen version (m.showji.com) of the mobile phone online.

< span="">

< span="">There is < span=""> An API interface directly to get mobile phone number attribution information, red is < span=""> ... Shown below

http://api.showji.com/Locating/www.showji.com.aspx?m=< span="">&output=json&callback= Querycallback

< span="">:< span="">.

The use of the time can be < span=""> removed from the back or to intercept processing.

< span="">

< span="">

< span="">

Header ("Content-type:text/html;charset=utf-8"); $url = "http://api.showji.com/Locating/www.showji.com.aspx"; $ CellPhoneNumber = "13530552275"; $setting _array = Array (' http ' = = Array (' timeout ' = 5, ' Metho d ' = = ' GET ', ' protocol_version ' = ' 1.1 ', ' header ' = ' User-agent:mozill ' a/5.0 (IPhone; U CPU iPhone os 4_0 like Mac os X;                     En-US) applewebkit/532.9 (khtml, like Gecko) version/4.0.5 mobile/8a293 safari/6531.22.7\r\n ".                     "Host:api.showji.com\r\n".                                    "Accept-language:zh-cn,zh;q=0.8\r\n".                     "Accept: */*\r\n".                     "Referer:http://m.showji.com/\r\n". "connection:keep-alive\r\n\r\n")); $headers = Stream_context_create ($setting _array);//$jsons = file_get_contents ( $url. "? M= ". $cellPhoneNumber." &output=json ", FALSE, $headers); This opens to 10s$jsons = file_get_contents ($url. "? M= ". $cellPhoneNumber." &outPut=json "),//open 1s directly to $cellphoneinfo = Json_decode ($jsons, True);p Rint_r ($cellPhoneInfo);//360 interface Echo file_get_ Contents ("Http://apps.qiyigoo.com/telsearch/get_tel.php?_=1370366237601&do=get_tel_info&teltype=phone &phone=13530552275&1370366237599 ");

of < span=""> Course, there is an interface. However, the returned information is a little, return the city, card information.

Red is < span=""> Blue is < span=""> The request when you want to replace yourself.

http://apps.qiyigoo.com/telsearch/get_tel.php?_=< span="">&do=get_tel_info&teltype=phone& phone=< span="">&< span="">

http://www.bkjia.com/PHPjc/440317.html www.bkjia.com true http://www.bkjia.com/PHPjc/440317.html techarticle I saw my friend in the group in the afternoon, so I looked at it a little bit. found that mobile phone number attribution query is basically provided by. The major sites have taken the company's interface, so I ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.