php: get_browser()

Hi all,
I have a problem in php.
I want to get the browsername with the get_browser() function but it doesn’t work, it only prints for the browser value “default browser”.


$user_agent = $_SERVER['HTTP_USER_AGENT'];   
$browser = get_browser($user_agent, true);
echo $browser['browser'];
 

I already downloaded the new browscaps.ini for php.

you know there’s a typo in there?

echo $bowser[‘browser’];
______^

oh, but thats not the problem, I just wrote this little code to show what doesn’t work.

Heh, thought so, just checking :stuck_out_tongue:

works now.

Founded in 2004, Leakfree.org became one of the first online communities dedicated to Valve’s Source engine development. It is more famously known for the formation of Black Mesa: Source under the 'Leakfree Modification Team' handle in September 2004.