michaellunsford Posted June 18, 2006 Share Posted June 18, 2006 Thus quoteth the manual:[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--] While browscap.ini contains information on many browsers, it relies on user updates to keep the database current.[/quote]okay, we know get_browser isn't the solution. Is there an easier way to just find out what a site visitor's operating system is? Quote Link to comment https://forums.phpfreaks.com/topic/12314-determining-a-visitors-operating-system/ Share on other sites More sharing options...
.josh Posted June 18, 2006 Share Posted June 18, 2006 HTTP_USER_AGENT Quote Link to comment https://forums.phpfreaks.com/topic/12314-determining-a-visitors-operating-system/#findComment-47045 Share on other sites More sharing options...
zq29 Posted June 18, 2006 Share Posted June 18, 2006 As Crayon_Violent pointed out, HTTP_USER_AGENT, which is a part of the global variable $_SERVER[]$_SERVER['HTTP_USER_AGENT'] Quote Link to comment https://forums.phpfreaks.com/topic/12314-determining-a-visitors-operating-system/#findComment-47046 Share on other sites More sharing options...
michaellunsford Posted June 18, 2006 Author Share Posted June 18, 2006 I had hoped not to explode USER_AGENT by ";" and write a function to interpret the third array object. I guess browscap.ini is starting to look better than I thought. Quote Link to comment https://forums.phpfreaks.com/topic/12314-determining-a-visitors-operating-system/#findComment-47062 Share on other sites More sharing options...
poirot Posted June 18, 2006 Share Posted June 18, 2006 get_browser RELIES on the USER_AGENT:[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]mixed get_browser ( [string [b]user_agent[/b] [, bool return_array]] )[/quote]It IS the best option. Finito. Maybe you can code something similar, but you'll have to use the USER_AGENT header anyways Quote Link to comment https://forums.phpfreaks.com/topic/12314-determining-a-visitors-operating-system/#findComment-47071 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.