Jump to content

Detect OS


laPistola

Recommended Posts

Using HTTP_USER_AGENT to get info on the clients OS but i need more details for the higher OS's

 

For example win98 is shown as win98 or windows98 in the HTTP_USER_AGENT, and where winNT 5.0 means windows 2000 its getting confusing even more so for XP and Vista

 

anyone have a list of which is what OS or a script that detects and displays the OS and version ie Windows XP etc.

 

Cheers

Link to comment
https://forums.phpfreaks.com/topic/138806-detect-os/
Share on other sites

For a fun idea, why don't you build a script to capture the user agent, parse it for the operating system, and check it against your database. In one table you have the user agent and its 'general' category (windows2000 for instance). In another table, you have a list of every user agent operating system parse.

If it is found in the second table, check the first and save the info. If it is NOT in the second table, save it in the second table with a flag column set to 1. Then, once a week, process the flagged agents and categorize them manually. You'll be collecting them and generating the list as you go. Kinda sounds like fun (but I'm twisted).

Link to comment
https://forums.phpfreaks.com/topic/138806-detect-os/#findComment-725900
Share on other sites

http://techpatterns.com/downloads/php_browser_detection.php

 

They have, in the middle column, two boxes... one on the left, one on the right. The one on the left tells lots of computer info including your OS. The one on the right is a download link for that computer info box. Try looking there.

Link to comment
https://forums.phpfreaks.com/topic/138806-detect-os/#findComment-725993
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.