LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 06-05-2004, 06:28 PM   #1
bfloeagle
Member
 
Registered: Jun 2000
Location: Upstate New York
Distribution: Ubuntu
Posts: 158

Rep: Reputation: 30
Question Grab OS in PHP???


I'm trying to track the OS of people viewing my website using PHP. Does anyone know how to do this??? I didn't see an environment tag for it and my Google searches have been fruitless.



Thanks!
Andy
 
Old 06-05-2004, 06:37 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
The closesr you'll get I think is the envvar HTTP_USER_AGENT, which is the browser ident.

Try searching for windows, mac, or linux in the string. This is not guarenteed as some people fake the ident, or their ident doesn't contain the OS.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
using sed to grab two characters? nausicaa3000 Programming 4 04-20-2004 11:01 AM
Need to grab bookmarks from IE... slackMeUp Linux - Software 3 01-25-2004 05:02 PM
Grab Cert?? joseph_1970 Linux - General 6 12-17-2003 09:39 AM
How can i grab a picture from the desktop... The SIN Raven Slackware 4 09-02-2003 09:00 PM
xv grab garbage kramtoad Linux - Software 0 08-23-2003 07:26 PM


All times are GMT -5. The time now is 01:38 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration