Viewing 1 replies (of 1 total)
  • Plugin Author Mindshare Labs, Inc.

    (@mindshare)

    Yes, so long as the data is in the browscap file you can use it, for example you can use
    php_browser_info() to return an array of all the data and then do anything you like with it:

    php_browser_info() = Array
    (
        [browser_name] => Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36
        [browser_name_regex] => ^mozilla/5\.0 \(.*mac os x 10_(\d).*\) applewebkit/.* \(khtml, like gecko\).*chrome/(\d)(\d)\..*safari/.*$
        [browser_name_pattern] => Mozilla/5.0 (*Mac OS X 10_9*) AppleWebKit/* (KHTML, like Gecko)*Chrome/37.*Safari/*
        [Parent] => Chrome 37.0
        [Platform] => MacOSX
        [Platform_Version] => 10.9
        [Win32] =>
        [Comment] => Chrome 37.0
        [Browser] => Chrome
        [Version] => 37.0
        [MajorVer] => 37
        [Frames] => 1
        [IFrames] => 1
        [Tables] => 1
        [Cookies] => 1
        [JavaScript] => 1
        [JavaApplets] => 1
        [CssVersion] => 3
        [MinorVer] => 0
        [Alpha] =>
        [Beta] =>
        [Win16] =>
        [Win64] =>
        [BackgroundSounds] =>
        [VBScript] =>
        [ActiveXControls] =>
        [isMobileDevice] =>
        [isTablet] =>
        [isSyndicationReader] =>
        [Crawler] =>
        [AolVersion] => 0
    )
Viewing 1 replies (of 1 total)
  • The topic ‘Detect Operating System?’ is closed to new replies.