摘要:判斷是否屬手機(jī)使用您使用的是移動設(shè)備訪問
//判斷是否屬手機(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 "您使用的是移動設(shè)備訪問"; }
文章版權(quán)歸作者所有,未經(jīng)允許請勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。
轉(zhuǎn)載請注明本文地址:http://specialneedsforspecialkids.com/yun/21318.html
摘要:方法判斷是否屬手機(jī)調(diào)用您使用的是移動設(shè)備訪問 方法 //判斷是否屬手機(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ù),相對于暴露在廣域網(wǎng)中要安全不少,主要威脅對象基本控制在了可以接入局域網(wǎng)的內(nèi)部潛在威脅者,和極少數(shù)能夠突破最外圍防線局域網(wǎng)出入口的安全設(shè)備的入侵者。 前言 對于任何一個企業(yè)來說,其數(shù)據(jù)庫系統(tǒng)中所保存數(shù)據(jù)的安全性無疑是非常重要的,尤其是公司的有些商業(yè)數(shù)據(jù),可能數(shù)據(jù)就是公司的根本。 失去了數(shù)據(jù),可能就失去了一切 本章將針對mysql...
摘要:打算探索方式,利用搭建開發(fā)環(huán)境利用搭建開發(fā)環(huán)境。第二種,基于文件共享服務(wù)安裝并配置軟件倉庫來安裝服務(wù)程序服務(wù)程序中的參數(shù)以及作用全局參數(shù)。是否所有人可見,等同于參數(shù)。 由于買不起MAC PRO,所以想研究下在windows下進(jìn)行php開發(fā)的最佳方式。打算探索方式, 利用vmware搭建php開發(fā)環(huán)境; 利用docker搭建php開發(fā)環(huán)境。 在網(wǎng)上看到vagrant問題頗多,所以不打...
摘要:自年以來,在智能家居市場的驅(qū)動下,智能貓眼市場膨脹速度驚人。移動偵測即人體感應(yīng)當(dāng)有人經(jīng)過門前時會自動啟動拍照或者錄像功能記錄來訪者。而實時操作系統(tǒng)內(nèi)核小巧,對任何中斷指令都可以做到馬上響應(yīng),系統(tǒng)啟動時間則只有幾秒鐘。 1、背景 ????隨著人工智能的迅速發(fā)展,智能家居的時代已經(jīng)到來,除了智...
閱讀 767·2023-04-25 17:33
閱讀 3626·2021-07-29 14:49
閱讀 2480·2019-08-30 15:53
閱讀 3435·2019-08-29 16:27
閱讀 2000·2019-08-29 16:11
閱讀 1030·2019-08-29 14:17
閱讀 2432·2019-08-29 13:47
閱讀 2016·2019-08-29 13:28