HOWTO: Install and use browscap respectively get_browser() for PHP on Ubuntu (Debian)

PHP Manual: http://php.net/manual/en/function.get-browser.php

$browser = get_browser($_SERVER[‘HTTP_USER_AGENT’], true);
print_r($browser);

Download: php_browscap.ini (http://tempdownloads.browserscap.com/)

You can put the file anywhere. I placed it here: /etc/php5/apache2/php_browscap.ini

Edit your: php.ini

[browscap]
; http://php.net/browscap
browscap = “/etc/php5/apache2/php_browscap.ini”

Design a site like this with WordPress.com
Get started