[英]is there any way to check the information of client device in javascript or php, which request to server? is this device mobile, tablet or pc?
我需要使用php或javascript在服务器端检测客户端设备? 哪个是客户端设备,哪个浏览器正在使用该设备?
查看User-Agent
标头。
你可以使用$_SERVER
和HTTP_USER_AGENT
http://php.net/manual/en/tutorial.useful.php
查看Tera-WURFL(http://dbapi.scientiamobile.com/wiki/index.php/Main_Page)。 它是一种可以检测移动设备功能的API。 我们在此处使用它来确定是否将用户转发到我们的应用程序的桌面版或移动版。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.