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