Results 1 to 4 of 4

Thread: Operating System Sniffer

  1. #1

    Thread Starter
    Addicted Member TheGoldenShogun's Avatar
    Join Date
    Mar 2001
    Location
    VA/MD... anywhere around the beltway
    Posts
    236

    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).

  2. #2
    scoutt
    Guest
    no as far as I know it is in the $HTTP_USER_AGENT

  3. #3

    Thread Starter
    Addicted Member TheGoldenShogun's Avatar
    Join Date
    Mar 2001
    Location
    VA/MD... anywhere around the beltway
    Posts
    236
    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

  4. #4
    scoutt
    Guest
    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
  •  



Click Here to Expand Forum to Full Width