2

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

Adam Hopkinson
  • 28,281
  • 7
  • 65
  • 99
Jake
  • 25,479
  • 31
  • 107
  • 168

2 Answers2

2

Use PHP get_browser

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

Luca Filosofi
  • 30,905
  • 9
  • 70
  • 77
2

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

marklark
  • 860
  • 1
  • 8
  • 18
jeff musk
  • 1,032
  • 1
  • 10
  • 31
  • According to a link on the redirected page mentioned above: "This site and related update URLs will be disabled on 30th March 2014. Visit Browscap.org for all new updates. You will need to update any scripts to use the new URLs." – marklark Feb 19 '14 at 17:41