PHP Browser Detection and Redirection

前端 未结 2 1261
予麋鹿
予麋鹿 2021-01-15 14:03

All,

My application supports IE7+, MOZILLA and other modern browsers. Anybody know of a very good browser detection and redirection PHP class? I came across this, bu

相关标签:
2条回答
  • 2021-01-15 14:09

    All you need is get_browser() and a recent browscap.ini that maps the user-agent string to a browser/version and its capabilities. You can get a usually very up-to-date browscap.ini version from http://browsers.garykeith.com/downloads.asp

    Source:@VolkerK

    WURLF is the ultimate way for mobile browser detection and a PHP API is available

    Source:kgiannakakis

    0 讨论(0)
  • 2021-01-15 14:16

    Use PHP get_browser

    get_browser — Tells what the user's browser is capable of

    0 讨论(0)
提交回复
热议问题