摘要:判斷是否屬手機(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
摘要:方法判斷是否屬手機(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...
摘要:處在局域網(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...
摘要:打算探索方式,利用搭建開(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)題頗多,所以不打...
摘要:自年以來(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),除了智...
閱讀 786·2023-04-25 17:33
閱讀 3641·2021-07-29 14:49
閱讀 2488·2019-08-30 15:53
閱讀 3442·2019-08-29 16:27
閱讀 2011·2019-08-29 16:11
閱讀 1038·2019-08-29 14:17
閱讀 2447·2019-08-29 13:47
閱讀 2024·2019-08-29 13:28