I just tried enabling php_browscap.ini to use the get_browser function.
However, it seems to display an empty array?
$user_agent = get_browser(null, true); print_r($user_agent);
In my php.ini file, I have the following:
[browscap] ; http:
I probably missed something simple?
Update
Output:
Array ( [browser_name_regex] => Β§^.*$Β§ [browser_name_pattern] => * [browser] => Default Browser [version] => 0 [majorver] => 0 [minorver] => 0 [platform] => unknown [alpha] => [beta] => [win16] => [win32] => [win64] => [frames] => 1 [iframes] => [tables] => 1 [cookies] => [backgroundsounds] => [cdf] => [vbscript] => [javaapplets] => [javascript] => [activexcontrols] => [isbanned] => [ismobiledevice] => [issyndicationreader] => [crawler] => [cssversion] => 0 [supportscss] => [aol] => [aolversion] => 0 )
source share