PHP Browser Detection
Click here for the new version.
An old php class written by Gary White back in 2003 is still by far one of the best PHP Browser detection class’s I have come accross.
It should correctly identify all versions of:
- Amaya
- Galeon
- iCab
- Internet Explorer
For AOL versions it will identify as Internet Explorer (AOL) and the version will be the AOL version instead of the IE version. - Konqueror
- Lynx
- Mozilla
- Netscape Navigator/Communicator
- OmniWeb
- Opera
- Pocket Internet Explorer for handhelds
- Safari
- WebTV
Click here to download browser.rar
Hey Daniel/Mavrick:
I recently needed to find a solid way to determine the browser as well; from your blog I found my way to Gary’s solution; but I needed a few updates. After some challenges with the aging solution I re-tooled it from the ground up. Here’s my solution: http://chrisschuld.com/projects/browser-php-detecting-a-users-browser-from-php/
Thanks, Chris