douzhong1907 2010-11-25 09:18
浏览 154
已采纳

从用户代理检测到的php脚本是什么设备(移动)?

I am try to write a php script that return the device from the user agent in the header.

the problem that i see that is not simple to do a regular expression, because the different between the device (am i wrong?)

so i want an updated list of mobile device according to the user agent

I found this list : List of user agents for mobile phones

I try to find an updated xml / feed that i can take all the kinds

or other way you think that best to do this .

thanks.

  • 写回答

3条回答 默认 最新

  • dounao5856 2010-11-25 13:50
    关注

    after alot of search i think the simple way is to use a web service

    This means no downloads, no installs, no hassles... just simple!

    http://www.wurflws.com/

    EDIT:

    The web service is not available now, i recommend to use http://deviceatlas.com/ or http://51degrees.mobi/ (commercial) or if you look on open source look on : Best Open Source WURFL alternative

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog