PHP浏览器检测和重定向 [英] PHP Browser Detection and Redirection

查看:358
本文介绍了PHP浏览器检测和重定向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所有,

我的应用程序支持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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆