Forum Moderators: coopster

Message Too Old, No Replies

browser version

how to get that data

         

muszek

4:27 pm on Aug 18, 2006 (gmt 0)

10+ Year Member



hi.

I run a site with fairly high traffic and demographics that might be interesting to see browser data on... so I was thinking of writing browser idents to the db.

How do I do get that info in PHP? Ideally, I wouldn't just want to get browser name and version (for example 'Opera 9.01').

barns101

5:26 pm on Aug 18, 2006 (gmt 0)

10+ Year Member



Use $_SERVER['HTTP_USER_AGENT'] and then you could use explode() or substr() to get the different parts. I have seen a function that gets the different bits but I can't remember where!

muszek

6:43 pm on Aug 18, 2006 (gmt 0)

10+ Year Member



thank you :)

muszek

6:50 pm on Aug 18, 2006 (gmt 0)

10+ Year Member



get-browser [php.net] does the trick...

[edited by: dreamcatcher at 6:55 pm (utc) on Aug. 18, 2006]
[edit reason]
[1][edit reason] Made Link Live [/edit]
[/edit][/1]

muszek

6:51 pm on Aug 18, 2006 (gmt 0)

10+ Year Member



argh... sorry, haven't been to WW for a while :(