1,jquery or JS to determine the browser kernel version number and whether to support the box model JQuery, starting with version 1.9, removed $.browser and $.browser.version and replaced it with $.support. In the updated version 2.0, IE 6/7/8 will no longer be supported.Later, if the user needs to support IE 6/7/8, onl
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
PHP mobile phone number, local query program code. This article summarizes two commonly used mobile phone home location query programs. one is to use APIs to call third-party interfaces, one is to use our own mobile phone database to query and then judge the mobile phone. Th
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
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
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
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
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
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
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
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
($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
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
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
There are already a lot of mobile phone numbers on the network to query the API interface, but these interfaces are always some large and small defects.Summarize these flaws:1, to directly paste its search box link form to their own page, click on the query when you want to jump to their site to show the results of attribution2, the API to provide the interface, generally require payment, or a day only free limited
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.