PHP浏览器检测和重定向 [英] PHP Browser Detection and Redirection
问题描述
所有,
我的应用程序支持IE7 +,Mozilla和其它现代浏览器。任何人都知道一个很好的浏览器检测和重定向PHP类的?我遇到了这一点,但我不知道是否有人使用这样的:
的http://chrisschuld.com/projects/browser-php-detecting-a-users-browser-from-php/#typicalusage
感谢
所有你需要的是get_browser()和用户代理字符串映射到一个浏览器/版本和它的能力最近的browscap.ini。
您可以从 http://browsers.garykeith.com得到一个平时很先进的最新版本的browscap.ini版本/downloads.asp
块引用>来源:@VolkerK
WURLF 是手机浏览器检测的最终出路和PHP API可用
块引用>来源:kgiannakakis
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, but I am not sure if anybody used this:
http://chrisschuld.com/projects/browser-php-detecting-a-users-browser-from-php/#typicalusage
Thanks
解决方案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
这篇关于PHP浏览器检测和重定向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!