成人国产在线小视频_日韩寡妇人妻调教在线播放_色成人www永久在线观看_2018国产精品久久_亚洲欧美高清在线30p_亚洲少妇综合一区_黄色在线播放国产_亚洲另类技巧小说校园_国产主播xx日韩_a级毛片在线免费

資訊專欄INFORMATION COLUMN

判斷來訪客服端是否是移動設(shè)備

UsherChen / 1666人閱讀

摘要:方法判斷是否屬手機調(diào)用您使用的是移動設(shè)備訪問

方法

//判斷是否屬手機
function is_mobile() {
    $user_agent = $_SERVER["HTTP_USER_AGENT"];
    $mobile_agents = Array("240x320","acer","acoon","acs-","abacho","ahong","airness","alcatel","amoi","android","anywhereyougo.com","applewebkit/525","applewebkit/532","asus","audio","au-mic","avantogo","becker","benq","bilbo","bird","blackberry","blazer","bleu","cdm-","compal","coolpad","danger","dbtel","dopod","elaine","eric","etouch","fly ","fly_","fly-","go.web","goodaccess","gradiente","grundig","haier","hedy","hitachi","htc","huawei","hutchison","inno","ipad","ipaq","ipod","jbrowser","kddi","kgt","kwc","lenovo","lg ","lg2","lg3","lg4","lg5","lg7","lg8","lg9","lg-","lge-","lge9","longcos","maemo","mercator","meridian","micromax","midp","mini","mitsu","mmm","mmp","mobi","mot-","moto","nec-","netfront","newgen","nexian","nf-browser","nintendo","nitro","nokia","nook","novarra","obigo","palm","panasonic","pantech","philips","phone","pg-","playstation","pocket","pt-","qc-","qtek","rover","sagem","sama","samu","sanyo","samsung","sch-","scooter","sec-","sendo","sgh-","sharp","siemens","sie-","softbank","sony","spice","sprint","spv","symbian","tablet","talkabout","tcl-","teleca","telit","tianyu","tim-","toshiba","tsm","up.browser","utec","utstar","verykool","virgin","vk-","voda","voxtel","vx","wap","wellco","wig browser","wii","windows ce","wireless","xda","xde","zte");
    $is_mobile = false;
    foreach ($mobile_agents as $device) {
        if (stristr($user_agent, $device)) {
            $is_mobile = true;
            break;
        }
    }
    return $is_mobile;
}

調(diào)用

if( is_mobile() ){
    echo "您使用的是移動設(shè)備訪問";
}

文章版權(quán)歸作者所有,未經(jīng)允許請勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。

轉(zhuǎn)載請注明本文地址:http://systransis.cn/yun/30368.html

相關(guān)文章

  • php 判斷來訪客戶端移動設(shè)備

    摘要:判斷是否屬手機使用您使用的是移動設(shè)備訪問 //判斷是否屬手機 function is_mobile() { $user_agent = $_SERVER[HTTP_USER_AGENT]; $mobile_agents = Array(240x320,acer,acoon,acs-,abacho,ahong,airness,alcatel,amoi,android,an...

    lentoo 評論0 收藏0
  • 常見https,SSH協(xié)議和MD5加密方式分析

    摘要:前言協(xié)議和加密是前端可能會接觸到的加密所以我就將他們進行了一個歸納原理就是在加入層是安全的基礎(chǔ)協(xié)議是在基礎(chǔ)上加了協(xié)議使用端口是端口由網(wǎng)景公司開發(fā)并內(nèi)置在瀏覽器中作用建立一個信息安全通道來保證數(shù)據(jù)傳輸?shù)陌踩_認網(wǎng)站的真實性可以查看網(wǎng)站認證的真 前言 https,SSH協(xié)議和MD5加密是前端可能會接觸到的加密,所以我就將他們進行了一個歸納. 1.https 1.1原理 A.就是在http加...

    3fuyu 評論0 收藏0
  • 常見https,SSH協(xié)議和MD5加密方式分析

    摘要:前言協(xié)議和加密是前端可能會接觸到的加密所以我就將他們進行了一個歸納原理就是在加入層是安全的基礎(chǔ)協(xié)議是在基礎(chǔ)上加了協(xié)議使用端口是端口由網(wǎng)景公司開發(fā)并內(nèi)置在瀏覽器中作用建立一個信息安全通道來保證數(shù)據(jù)傳輸?shù)陌踩_認網(wǎng)站的真實性可以查看網(wǎng)站認證的真 前言 https,SSH協(xié)議和MD5加密是前端可能會接觸到的加密,所以我就將他們進行了一個歸納. 1.https 1.1原理 A.就是在http加...

    Alfred 評論0 收藏0
  • Vue+Koa+Mongodb 小練習

    摘要:小練習作者本文首發(fā)博客功能基于進行登錄,注冊,留言的簡單網(wǎng)站。所以這個小練習,從一個簡單的方面入手,希望能給踩過同樣多坑的同路人一點啟發(fā)。就意味著要重新登錄。的作用是進行進程守護,當你的意外的停止的時候,進行重啟。 Vue+Koa+Mongodb 小練習 作者: Pawn 本文首發(fā): Pawn博客 功能: 基于vue koa mongodb進行登錄,注冊,留言的簡單網(wǎng)站。 體驗地址: ...

    趙春朋 評論0 收藏0

發(fā)表評論

0條評論

最新活動
閱讀需要支付1元查看
<