|
-
May 22nd, 2002, 07:58 AM
#1
Thread Starter
Addicted Member
Operating System Sniffer
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).
-
May 22nd, 2002, 09:42 AM
#2
no as far as I know it is in the $HTTP_USER_AGENT
-
May 22nd, 2002, 10:02 AM
#3
Thread Starter
Addicted Member
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
-
May 22nd, 2002, 10:21 AM
#4
it should print out something similar to this
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|