$_SERVER['HTTP_USER_AGENT']

来源:互联网 发布:淘宝铂金会员消费金额 编辑:程序博客网 时间:2024/06/06 06:40

<?php

echo $_SERVER['HTTP_USER_AGENT'];

?>

瀏覽器訪問時,輸出如下:

三星note3:

Mozilla/5.0 (Linux; U; Android 5.0; zh-CN; SM-N900 Build/LRX21V) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 UCBrowser/10.9.5.729 U3/0.8.0 Mobile Safari/534.30


iphone 6 plus:
Mozilla/5.0 (iPhone; CPU iPhone OS 9_2_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13D15 Safari/601.1


macbookair:

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/601.4.4 (KHTML, like Gecko) Version/9.0.3 Safari/601.4.4


火狐瀏覽器:

Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0


360瀏覽器:

Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36

qq瀏覽器:

Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko QQBrowser/9.2.5748.400


百度瀏覽器:

Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 BIDUBrowser/7.6 Safari/537.36


//==================================================

iphone模擬器,app接口訪問:

haocaimao/2.1.6 (iPhone; iOS 9.2; Scale/2.00)


iphone 6 plus,app接口訪問

haocaimao/2.1.6 (iPhone; iOS 9.2.1; Scale/3.00)

備註:haocaimao/2.1.6爲app名稱和版本號


0 0
原创粉丝点击