search

Home  >  Q&A  >  body text

How does PHP correctly determine the browser used by the customer to access?

RT, but many browsers now use browsers from other companies, resulting in inaccurate judgment. For example, when I use QQ browser to visit, the records are from Google...
Is there any accurate way to determine the browser used by the user to access?

ringa_leeringa_lee2843 days ago388

reply all(2)I'll reply

  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-16 13:01:13

    The logo of QQ browser is QQ Browser. Like 360, I don’t know how to judge it at the moment

    reply
    0
  • PHP中文网

    PHP中文网2017-05-16 13:01:13

    Use priority to judge
    There are several types of the same UA.
    Such as WeChat

    • MicroMessenger

    • webkit

    • iphone

    When you judge, judge firstMicroMessenger. If so, stop judging. Others can be deduced in this way

    reply
    0
  • Cancelreply