get_browser() not working
Posted: Wed Jun 30, 2010 3:57 pm
I am trying to use the get_browser() function but it is always returning the default variables.
[text]
[browscap]
; http://php.net/browscap
browscap = C:\wamp\bin\php\php5.3.0\php_browscap.ini[/text]
Despite configuring it according to all references I've found via Google, it is still not working. I obtained the database file from http://browsers.garykeith.com/downloads.asp and followed all directions on http://php.net/manual/en/function.get-browser.php.
I am using Firefox 3.6.6 on Windows XP SP3. The server is running Windows Server 2008 R2 with WAMP with Apache 2.1.11, PHP 5.3.0 and MySQL 5.1.36.
The output I receive is:
[text]
[browscap]
; http://php.net/browscap
browscap = C:\wamp\bin\php\php5.3.0\php_browscap.ini[/text]
Despite configuring it according to all references I've found via Google, it is still not working. I obtained the database file from http://browsers.garykeith.com/downloads.asp and followed all directions on http://php.net/manual/en/function.get-browser.php.
I am using Firefox 3.6.6 on Windows XP SP3. The server is running Windows Server 2008 R2 with WAMP with Apache 2.1.11, PHP 5.3.0 and MySQL 5.1.36.
The output I receive is:
Code: Select all
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
)