Forum Moderators: coopster

Message Too Old, No Replies

php browscap on windows apache server

php browscap on windows apache server

         

drooh

1:41 am on Apr 8, 2010 (gmt 0)

10+ Year Member



I am having trouble with using browscap

I have the location specified correctly in my php.ini file

when i use the code

$browser = get_browser(null, true);
print_r($browser);
echo $browser['platform'];

I get the following

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 ) unknown

eelixduppy

2:20 pm on Apr 30, 2010 (gmt 0)



>> I have the location specified correctly in my php.ini file

Are you sure? This is the only thing I can think of that would give bad results.

Also, what browser are you using? Perhaps you should try with another one and see if it doesn't pick it up.