How to determine whether to use PC-side or mobile-browsing Web page?
Reply content:
How to determine whether to use PC-side or mobile-browsing Web page?
PHPThere's a library of cell phone tests.Mobile-DetectAddress: Https://packagist.org/packages/mobiledetect/mobiledetectlib
0. $matches [0]: "; function Checksubstrs ($substrs, $text) {foreach ($substrs as $substr) {if (False!==strpos ($text, $substr)) { return true; }else{return false; }}} $mobile
use them on a large scale ."
On the other hand, the mobile app company Dexterra leads Nikor and agrees that there is no suitable Linux device, but implies that the right platform will eventually emerge. On the other hand, Nilor predicts that the popularity of RIM's email device BlackBerry will decrease in the future, while Microsoft and Nokia will quickly seize the market. "BlackBerry devices are indispensable in the promotion of mobile emails, but it is very difficult to know how to continue
Microsoft OneNote is a note taking application comes with the Microsoft Office Bundle, I downloaded it four days ago s Ince I feel like I desperately need a tool to help manage my scheduleas well as enforcing a mission on Myself because it had always been my weakness that I had little self-control.The inspiration I got for using this app are from my past working experience at Vodafone Sydney, where my boss Rachel have a notebook that's used for reco
develop and deploy, and provide outstanding user experience. Currently, bae supports the Jil widget format (the widget standard jointly defined by China Mobile and Vodafone and Softbank) and is also compatible with some popular widgets on the Internet, such as Apple Dashboard widgets.
Open Runtime Environment
Bae currently supports mainstream mobile terminal intelligent platforms such as Symbian, Windows Mobile, and OMS. It is a widget applicati
Internet services have been constantly enriched. Especially with the approaching pace of 3G commercialization, it is a very realistic problem to let mobile phone users quickly find the information they need in the numerous wireless Internet worlds.The biggest advantage of mobile search is that it breaks the computer's cable constraints and allows users to instantly obtain the required information through their mobile phones. Industry insiders believe that from the perspective of actual appl
|symbian|treo|up.browser|up.link|vodafone|windows ce|xda |xda_)/I ', $_server[' http_user_agent ']) {return true;} Else{return false; }}Let's take a second. The decision to peel from the PHP framework is a function of the mobile terminal:function Is_mobile_request () {$_server[' all_http '] = isset ($_server[' all_http '])? $_server[' All_http ']: '; $mobile _browser = ' 0 '; if (Preg_match ('/(up.browser|up.link|mmp|symbian|smartphone|midp|wap|
| android | iphone | ipod | mobi | palm | palmos | pocket | portalmmm | ppc; | smartphone | sonyericsson | sqh | spv | symbian | treo | up. browser | up. link | vodafone | windows ce | xda _)/I ', $ _ SERVER ['HTTP _ USER_AGENT']) {Return true;}Else {Return false;}}Another function is used to determine whether the PHP framework is separated from the mobile terminal: (tested, comprehensive, and recommended)Copy codeThe Code is as follows:Function is_m
, its value//would now is in $matches [1] if (Isset ($matches [1])) {$si Ze = $matches [1]; } else {$size = ' unknown '; } $last _mb = round ($size/(1024*1024), 3), $last _kb = round ($size/1024,3); Return $last _kb. ' KB/'. $last _mb. ' MB ';}Check to see if your phone is logged in and jump$agent = Check_wap (), if ($agent) {header (' location:http://www.baidu.com '); exit;} If it is a cell phone, function Check_wap () {//Check whether it is a WAP proxy, high accuracy if (stristr ($_se
Php judges whether mobile browsing is web browsing, and executes the corresponding action, phpweb
Yes. I have been searching for it online for a long time. record it.
1 function isMobile () {2 $ useragent = isset ($ _ SERVER ['HTTP _ USER_AGENT '])? $ _ SERVER ['HTTP _ USER_AGENT ']: ''; 3 $ useragent_commentsblock = preg_match (' | \(.*? \) | ', $ Useragent, $ matches)> 0? $ Matches [0]: ''; 4 function CheckSubstrs ($ substrs, $ text) {5 foreach ($ substrs as $ substr) 6 if (false! = Strpos ($
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.