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

資訊專(zhuān)欄INFORMATION COLUMN

php 判斷來(lái)訪客戶(hù)端是否移動(dòng)設(shè)備

lentoo / 514人閱讀

摘要:判斷是否屬手機(jī)使用您使用的是移動(dòng)設(shè)備訪問(wèn)

//判斷是否屬手機(jī)
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;
}
使用
if( is_mobile() ){
    echo "您使用的是移動(dòng)設(shè)備訪問(wèn)";
}

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

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

相關(guān)文章

  • 判斷來(lái)訪客服端是否移動(dòng)設(shè)備

    摘要:方法判斷是否屬手機(jī)調(diào)用您使用的是移動(dòng)設(shè)備訪問(wèn) 方法 //判斷是否屬手機(jī) function is_mobile() { $user_agent = $_SERVER[HTTP_USER_AGENT]; $mobile_agents = Array(240x320,acer,acoon,acs-,abacho,ahong,airness,alcatel,amoi,andro...

    UsherChen 評(píng)論0 收藏0
  • MySQL性能調(diào)優(yōu)與架構(gòu)設(shè)計(jì)(三)—— MySQL安全管理

    摘要:處在局域網(wǎng)之內(nèi)的,由于有局域網(wǎng)出入口的網(wǎng)絡(luò)設(shè)備的基本保護(hù),相對(duì)于暴露在廣域網(wǎng)中要安全不少,主要威脅對(duì)象基本控制在了可以接入局域網(wǎng)的內(nèi)部潛在威脅者,和極少數(shù)能夠突破最外圍防線局域網(wǎng)出入口的安全設(shè)備的入侵者。 前言 對(duì)于任何一個(gè)企業(yè)來(lái)說(shuō),其數(shù)據(jù)庫(kù)系統(tǒng)中所保存數(shù)據(jù)的安全性無(wú)疑是非常重要的,尤其是公司的有些商業(yè)數(shù)據(jù),可能數(shù)據(jù)就是公司的根本。 失去了數(shù)據(jù),可能就失去了一切 本章將針對(duì)mysql...

    Eminjannn 評(píng)論0 收藏0
  • 利用vmware搭建php開(kāi)發(fā)環(huán)境

    摘要:打算探索方式,利用搭建開(kāi)發(fā)環(huán)境利用搭建開(kāi)發(fā)環(huán)境。第二種,基于文件共享服務(wù)安裝并配置軟件倉(cāng)庫(kù)來(lái)安裝服務(wù)程序服務(wù)程序中的參數(shù)以及作用全局參數(shù)。是否所有人可見(jiàn),等同于參數(shù)。 由于買(mǎi)不起MAC PRO,所以想研究下在windows下進(jìn)行php開(kāi)發(fā)的最佳方式。打算探索方式, 利用vmware搭建php開(kāi)發(fā)環(huán)境; 利用docker搭建php開(kāi)發(fā)環(huán)境。 在網(wǎng)上看到vagrant問(wèn)題頗多,所以不打...

    wuyangnju 評(píng)論0 收藏0
  • 如何將RTOS系統(tǒng)啟動(dòng)時(shí)間做到“毫秒級(jí)”?AliOS Things是這樣做的

    摘要:自年以來(lái),在智能家居市場(chǎng)的驅(qū)動(dòng)下,智能貓眼市場(chǎng)膨脹速度驚人。移動(dòng)偵測(cè)即人體感應(yīng)當(dāng)有人經(jīng)過(guò)門(mén)前時(shí)會(huì)自動(dòng)啟動(dòng)拍照或者錄像功能記錄來(lái)訪者。而實(shí)時(shí)操作系統(tǒng)內(nèi)核小巧,對(duì)任何中斷指令都可以做到馬上響應(yīng),系統(tǒng)啟動(dòng)時(shí)間則只有幾秒鐘。 1、背景 ????隨著人工智能的迅速發(fā)展,智能家居的時(shí)代已經(jīng)到來(lái),除了智...

    Zachary 評(píng)論0 收藏0

發(fā)表評(píng)論

0條評(píng)論

閱讀需要支付1元查看
<