[转]php-mobile-detect
2024-08-29 09:16:01
转自:http://www.oschina.net/p/php-mobile-detect
php-mobile-detect (Mobile_Detect) 是一个 PHP 类,用来通过 User-Agent 检测各种手机设备。
示例代码:
include("Mobile_Detect.php");
$detect =newMobile_Detect();
if($detect->iOS()){
// code to run for the Apple iOS platform.
}
if($detect->isAndroidOS()){
// code to run for the Google Android platform.
}
if($detect->isMobile()){
// any mobile platform
}
if($detect->isTablet()){
// any tablet
} 下载地址: http://code.google.com/p/php-mobile-detect/downloads/list
http://mobiledetect.net/ JS CHECK OS : http://quojs.tapquo.com/
最新文章
- FlexiGrid 使用 全选、自动绑定
- BZOJ4590——[Shoi2015]自动刷题机
- tomcat 内存溢出解决办法
- uart串口的调试学习
- 【枚举+数学】【HDU1271】整数对 难度:五颗星
- Android 通过wifi调试程序【转】
- Oracle查询错误分析:ORA-01791:不是SELECTed表达式
- C#的初步学习,心得
- C#多线程编程序--聊聊线程
- flask开发过程中的常见问题
- Spring Boot笔记一 输出hello
- CString中 format、trimLeft和trimright、trim 和FindOneOf用法
- Codeforces 580A - Kefa and First Steps
- jenkins API
- 弄啥嘞?热爱你的Bug
- 最短路 dijkstra 优先队列
- JNI-获取Java对象的成员变量-GeInttField()
- New Concept English Two 19 49
- Linux系统下使用ckfinder上传中文名的图片无法正常预览
- 2 Docker 镜像基础
热门文章
- CSS------li中的宽和高无法修改问题
- SQL-修改表名,列名
- bugku web题INSERT INTO注入
- Activity-Flag标志位
- HTML基础单页面总结(基于w3school教程)
- 分类器评估方法:精确度-召回率-F度量(precision-recall-F_measures)
- Codeforces Round #369 (Div. 2) B. Chris and Magic Square 水题
- HDU 5738 Eureka 统计共线的子集个数
- spring-boot 速成(10) -【个人邮箱/企业邮箱】发送邮件
- redis 写磁盘出错 Can’t save in background: fork: Cannot allocate memory (转)