老问题新问:PHP代码网站如何判断来访是手机或电脑

[复制链接]
查看11 | 回复2 | 2013-10-9 13:33:40 | 显示全部楼层 |阅读模式
function is_mobile() {// Get the user agent$user_agent = $_SERVER['HTTP_USER_AGENT'];// Create an array of known mobile user agents// This list is from the 21 October 2010 WURFL File.// Most mobile devices send a pretty standard string that can be covered by// one of these.I believe I have found all the agents (as of the date ...
回复

使用道具 举报

千问 | 2013-10-9 13:33:40 | 显示全部楼层
为欧克四的发膦...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行