How can I identify it as a mobile access? Can an NGINX server recognize access from a mobile phone and then rewrite it? If it is identified by the php file itself, it is through the request header information, right .. But this jump is not good. ------ Solution ------------------ function nbsp; isMobile () nbsp how to identify access as a mobile phone?
Can an NGINX server recognize access from a mobile phone and then rewrite it?
If it is identified by the php file itself, it is through the r
Everyone knows that PHP code to static is beneficial to optimization, but I found that ecshop default HTML static is not set,
In that case, can the search engine find it? Even if it's a search, I think it's better to cache an HTML page.
Reply to discussion (solution)
if ((Debug_mode 2)! = 2) { $smarty->caching = true;} $ua = Strtolower ($_server[' http_user_agent '); $uachar = "/(nokia|sony|ericsson|mot|samsung|sgh|lg|philips| Panasonic|alcatel
This article will share with you a function used by php to determine whether to access mobile terminals. it was previously added to the favorites list. it is released here and recommended to our friends. I forgot where I got the function. I just couldn't find it in a package and saved it temporarily.
The code is as follows:
/*** Mobile access?** @ Return bool*/Function isMobile (){// If HTTP_X_WAP_PROFILE exists, it must be a mobile device.If (isset ($ _ SERVER ['http _ X_WAP_PROFILE ']){Retu
How can I identify it as a mobile access? Can an NGINX server recognize access from a mobile phone and then rewrite it? If it is identified by the php file itself, it is through the request header information, right .. But this jump is not good ., Function nbsp; I how to identify it as a mobile access?
Can an NGINX server recognize access from a mobile phone and then rewrite it?
If it is identified by the php file itself, it is through the request header information, right .. But this jump is
much as possible for the following code:
// Determine whether the mobile phone belongs
// The code looks a lot. In fact, the array looks a lot messy and should not be intimidated by the surface phenomenon!
Function is_mobile (){
$ User_agent = $ _ SERVER ['http _ USER_AGENT '];
$ Mobile_agents = Array ("240x320", "acer", "ACO on", "acs-", "abacho", "ahong", "airness", "alcatel ", "amoi", "android", "anywhereyougo.com", "applewebkit/52
WP7 are also Windows, with a slightly different characteristic if (Strpos (strtolower ' $_server['), ' W indows phone ')!== false) $mobile _browser++; if ($mobile _browser>0) return true; else return false; }
To share a personal use of
function Isphone () {///If there is http_x_wap_profile, it must be a mobile device if (Isset ($_server[' http_x_wap_profile ')) {return true; }//If the VIA information contains WAP it must be a mobile device, some service associations block the information if
What technology is now used to identify PC access or mobile Access?
What technology is now used to identify PC access or mobile Access? Title
WAP
Mobile Phone
Share to:
more
------Solution--------------------
$ua = Strtolower ($_server[' http_user_agent ');
$uachar = "/(Nokia
------Solution--------------------
Sony
------Solution--------------------
Ericsson
------Solution--------------------
Mot
------Solution--------------------
Samsung
------Solution--------------------
Sgh
---
new technical directions, and independently undertakes the implementation of a large number of projects at home and abroad, accumulating rich project experience. (For more information, Baidu: 51sap practical center)
At present, the company's various Consulting Businesses and SAP Business businesses are at the forefront of the same industry, except for Pa training, none of them have become the same standards. Yuan Xiang consulting integrates a team of experienced project experts in the SAP indus
Run
Shanghai Alcatel Home Plus 511 bridging + route 10.0.0.138
Route Brand Name: Viking
Account: ADSL password: adsl1234
Account: Root Password: grouter
Default route Password
Default account and password of some ADSL Routers
Emma 701 GB
192.168.101.1 192.168.0.1
Username: Admin Password: Admin
Username: szim password: szim
Emma 701 H
192.168.1.1 10.0.0.2
Username: Admin Password: epicrouter
Home Gateway
The IP address of
At present, experts from the Huawei 2012 lab are developing cutting-edge technologies for 5G wireless communication. Huawei also actively participates in and promotes extensive cooperation in the industry ecosystem.At the Metis Project Conference held in Munich, Germany from October 20 to October 20, more than 140 top research experts from the industry, universities and research institutions gathered to discuss breakthrough technologies of 5G wireless communication. Huawei is the largest organiz
Shanghai Electric Power. As the project manager and main technical director, the project has successfully managed the Shanghai Electric Power Project Portfolio Management Platform project and Software acceptance platform project, configuration Management or software development platform projects for Huawei, ZTE, ut yunkang, Wuhan jinglun, Datang Mobile, and Jiangsu mobile, as well as test platform projects for Shanghai mobile. During this period, we also conducted a large number of Rational Sof
Willard Boyle, a Nobel Prize winner from amerster, Nova se, Canada, whose achievements paved the way for digital photography and died at the age of 86 on May 7, 2011.
Because of his revolutionary significance in semiconductor circuit imaging, Boyle won the Nobel Physics Award in 2009.
His old friend Ron Macnutt, A camberland lawyer, mentioned that Boyle is very proud of this honor and has long hoped to win this award.
"We have already celebrated several times in the community. One of them was in
Chinese companies use Prolog software for construction project management-baozhi jiansi and meridian systems work together to build localization software, and Chinese enterprises use Prolog software for successful project delivery
See http://cn.biz.yahoo.com/060718/6/i9ad.html
Another promoter: snow technology http://www.pminchina.com/index.htm
Prolog provides comprehensive project management control for construction projects by automating the daily tasks and processes from project design to pr
system market, so it is positioned in cheap mobile phones in Developing Countries, Mozilla even hopes to reach the lowest price for smartphones to $25.
Firefox mobile phone systems have indeed received support from some mobile phone manufacturers, especially Chinese enterprises that want to occupy low-price mobile phones in developing countries, including Huawei, ZTE, and Alcatel brands owned by TCL.
Many Firefox mobile phones were listed one after a
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.