PDA

Click to See Complete Forum and Search --> : Operating System Sniffer


TheGoldenShogun
May 22nd, 2002, 07:58 AM
Does anybody know of a variable that tells you the users Operating System... preferably in PHP but if it only exists in JavaScript thats fine also. I know PHP has the getbrowser() function and the $HTTP_USER_AGENT to get what browser they have so I was assuming there is something similar for Operating System (Mac or Windows).

scoutt
May 22nd, 2002, 09:42 AM
no as far as I know it is in the $HTTP_USER_AGENT

TheGoldenShogun
May 22nd, 2002, 10:02 AM
really, I never even thought to see what $HTTP_USER_AGENT printed out... I just used a snippet of code to see if it was a IE or Netscape browser, thanks

scoutt
May 22nd, 2002, 10:21 AM
it should print out something similar to this

"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"