This article summarizes two commonly used mobile phone attribution query program, one is to use API call third-party interface implementation, one is to use our own mobile phone database query and then judge the cell phone number attribution to query.
Let's take a look at a program that calls the third method Web site
return false;If (strlen ($ tel) $ Tel = cn_substr ($ tel, 11); // truncates 11 characters to prevent multiple phone numbers.// If (! Is_numeric ($ tel) return false;If (cn_substr ($ tel, 1) = "0") // determines whether the phone number starts with 0. in this case, the landline number may start with 0.{If (cn_substr ($
landline number may start with 0.
{
If (cn_substr ($ tel, 2) = "01" | cn_substr ($ tel, 2) = "02") $ tel = cn_substr ($ tel, 3 ); // Three-digit area code
Else $ tel = cn_substr ($ tel, 4 );
$ Row = $ dsql-> GetOne ("Select code, city as dd from 'dede _ tel 'where code =' $ tel 'group by code ");
}
Else
{
$ Tel = cn_substr ($ tel, 7 );
$ Row = $ dsql-> GetOne ("Select num, city as dd from 'dede _ tel 'where num =' $ tel '");
}
$ City = $ row ['DD'];
may start with 0.{If (cn_substr ($ tel, 2) = "01" | cn_substr ($ tel, 2) = "02") $ tel = cn_substr ($ tel, 3 ); // Three-digit area codeElse $ tel = cn_substr ($ tel, 4 );$ Row = $ dsql-> GetOne ("Select code, city as dd from '#@__ tel' where code = '$ tel' group by code ");}Else{$ Tel = cn_substr ($ tel, 7 );$ Row = $ dsql-> GetOne ("Select num, city as dd from '#@__ tel' where num = '$ tel '");}$ City = $ row ['DD'];If ($ city){$ City = str_replace ("province", "-", $ city );$ City = str_repl
Because my hand a900s has been brick, so temporarily can't get ROM. First upload has been done before the brush 4.4 dedicated new TWRP recovery 2.7.1.1 This version number is my own definition, for the difference before the release of 2.7.0.0 (Omni Official latest or 2.7.0.0 version).2014.5.23 Update content1, fixed 2.7.0.0 version display color problem (this problem in my a900s on the test found, before also no one feedback)2, repair keys
($tel, 4);
$row = $dsql->getone ("Select Code,city as DD from ' #@__tel ' where code= ' $tel ' GROUP by Code");
}
Else
{
$tel = Cn_substr ($tel, 7);
$row = $dsql->getone ("Select Num,city as DD from ' #@__tel ' where num= ' $tel '");
}
$city = $row [' DD '];
if ($city)
{
$city = Str_replace ("province", "-", $city);
$city = Str_replace ("City", "" ", $city);
$city = "return $city;
}
}
API implementation method, there is no need for its own database, but there are limitations
Copy the code code as follows:
1. PHP Verification Mobile Phone number (support attribution to query and code for UTF8) _php tutorial
Introduction: PHP Verification mobile phone number (support attribution to query and encoded as
Mobile phone number
Mobile phone name has GSM: said only support China Unicom or mobile 2G (130, 131, 132, 134, 135, 136, 137, 138, 139, 145, 147, 150, 151, 152, 155, 156, 157, 158, 159, 182, 185, 186, 187, 188)
Mobile phone name has CDMA: only
This article summarizes two commonly used mobile phone home location query programs. One is to use APIs to call third-party interfaces, and the other is to use our own mobile phone database to query and then judge the mobile phone number home location query.
First, let's look at a program that calls the third method we
Introduction of API Store
API store is an API aggregation platform that can provide a variety of data services to the outside, more representative of the Dev store, Baidu API store and aggregated data, and so on, such services through the provision of the rest API interface to expose to third party developers.API Store provides many types of data services, there are common life, application development, financial management, travel tickets and other APIs, but some interfaces are charged, but al
supported mobile number prefix Array_splice ($sunum, 0, 1);//Cancel the current directory Array_splice ($ sunum,0,1); Remove the top-level directory $sub =substr ($phone, 0, 3);//Get the first three digits of the number if (In_array ($sub, $sunum)) { $num =substr ($phone, 3,4); $search =file ($dbpath. $sub); $re
displays the result. In addition, custom pages support submission from the get method, so that you can customize multiple queries locally. Do not modify the red part in the following example.
Page part1.htm for a complete query page:
Charset = UTF-8 "/> Enter the mobile phone number: Input id = "M" Size = "15" maxlength = "15"/> Input type = "Submit" Valu
If you want to do a cell phone number verification, then we need to know the number of mobile phone number section.//Mobile number Attribution support Segment: 134 135 136 137 138 139 1
Phone number Regular expression (support mobile phone number, 3-4-digit area code, 7-8-digit live number, 1-4 non-transposition machine number)
The code is as follows
C
This article original from Http://blog.csdn.net/voipmaker reprint annotated source.The latest version number TELEMCU added Android phone-side WEBRTC video conferencing capabilities, Android phone installed Chrome/firefox browser after loading TELEMCU Webrtcclientteleweb can directly participate in video conferencing,At the same time, TeleWeb can
1. Change the binding mobile phone just click on the microblogging page "account" into the Account Settings page, click on the left side of the "Account Security" and click "Binding Mobile Phone" to expand the option;
2. Click on "Change Number" (Warm tip: If there is no "change number" and "Unbind" button, ind
per province, mobile, Unicom, telecommunications), to determine which one of the number belongs to which of the province's users, I have to cycle the match it?
This is why!!!
Yes, that should be the case.
Directly call Jiangsu Telecom to provide a database of their Jiangsu mobile phone number segment, and there are few nu
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.