dta43039 2016-12-31 15:34
浏览 26
已采纳

PHP的get_browser与WURFL - 产生更准确的结果

Currently, I plan to obtain 3 browser information at server side, based on user agent string

  1. Browser name
  2. Major version
  3. Minor version

I realize there are 2 popular solution to do so

  1. WURFL
  2. PHP get_browser (which makes use of browscap.ini)

Right now, We prefer correctness over execution speed.

Has anyone experience both solution before? I was wondering, which solution yields more accurate result?

  • 写回答

1条回答 默认 最新

  • douan7529 2017-01-01 08:06
    关注

    Disclaimer: I'm the CTO of ScientiaMobile, the company that delivers WURFL.

    I am not familiar with the implementation of PHP get_browser, but I would be very surprised if it came close to the level of accuracy that WURFL can provide (including the advertised_browser* virtual capabilities).

    At ScientiaMobile we have a fully-fledged team that is constantly looking at the user-agent space and is fine tuning the WURFL data and API to correctly reflect the properties of devices and browsers (and respective versions).

    Of course, WURFL is not a free solution (albeit we make evaluation version of the OnSite APIs available to the general public).

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度