how to get os version via browser.php -


i using browser.php detect os name users use it. question how can os version of users use. script did not provide method or property . example want show windows version users use include seven,xp , on.

what solution? please me if can

use browsercap class instead, since appears (from comments above) tool you're using doesn't support feature. browsercap class off-shoot of php's native get_browser() method, though class doesn't require types of ini-configurations native function does. class standalone solution.

setup easy:

// loads class require 'path/to/browscap.php';  // browscap class in phpbrowscap namespace, import use phpbrowscap\browscap;  // create new browscap object (loads or creates cache) $bc = new browscap('path/to/the/cache/dir');  // information current browser's user agent $current_browser = $bc->getbrowser();  // output result print_r($current_browser); 

the output resulting object, full of relevant data (including platform/os):

stdclass object (     /* ... */     [parent] => safari 3.1     [platform] => macosx     [browser] => safari     [version] => 3.1     /* ... */ ) 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -