SirChick Posted August 9, 2007 Share Posted August 9, 2007 Is there a way to obtain what operating system a user is using when they register to my site without them giving the info which would mean they could lie. Similar to how you get their ip but with operating systems? The reason why is cos multiple accounts i want to allow as long as the two accounts are not on the same OS which adds extra proof they they may be "brothers and sisters" etc with two computers. If they cheat for example and say "hes my brother he is on a different pc in a different room.." i want to find a way to get enough info to prove it.. cos my fear is banning people who ain't lying.. cos there are bound to be instances... i just want to keep it as fair as possible. Quote Link to comment https://forums.phpfreaks.com/topic/64136-obtaining-os-type/ Share on other sites More sharing options...
lemmin Posted August 9, 2007 Share Posted August 9, 2007 get_browser() will return an array with a key "platform" that will contain the OS. Though, it is very unlikely that someone's brother or sister is always (or even usually) going to be on a different OS. Quote Link to comment https://forums.phpfreaks.com/topic/64136-obtaining-os-type/#findComment-319638 Share on other sites More sharing options...
wildteen88 Posted August 9, 2007 Share Posted August 9, 2007 You could also use $_SERVER['HTTP_USER_AGENT']. This returns the browser the user is using and the OS, eg: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6 Quote Link to comment https://forums.phpfreaks.com/topic/64136-obtaining-os-type/#findComment-319639 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.