Jump to content

Determining a visitor's Operating System


michaellunsford

Recommended Posts

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?
Link to comment
https://forums.phpfreaks.com/topic/12314-determining-a-visitors-operating-system/
Share on other sites

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.