php判斷訪問者是否手機客戶端實例
方法一:判斷HTTP_USER_AGENT$agent=strtolower($_SERVER['HTTP_USER_AGENT']);if(strpos($agent,"netfront")||strpos($agent,"iphone")||strpos($agent,"midp-2.0")||strpos($agent,"operamini")||st...
關于 判斷設備 的文章共有1條
方法一:判斷HTTP_USER_AGENT$agent=strtolower($_SERVER['HTTP_USER_AGENT']);if(strpos($agent,"netfront")||strpos($agent,"iphone")||strpos($agent,"midp-2.0")||strpos($agent,"operamini")||st...