Best way to grab visitor's operating system info?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Locked
User avatar
kaisellgren
DevNet Resident
Posts: 1675
Joined: Sat Jan 07, 2006 5:52 am
Location: Lahti, Finland.

Best way to grab visitor's operating system info?

Post by kaisellgren »

Hi,

I am in a big need of grabbing visitor's operating system info. Actually, all I need is to know what Operating System the visitor in currently running on and perhaps the version? (XP, Vista, ME, 98, etc in Windowses and version number in Linux distros)
bubblenut
Forum Newbie
Posts: 20
Joined: Sat Feb 03, 2007 4:16 am
Location: London

Post by bubblenut »

You can't reliably get it get hold of it as it depends on the client sending it to you. However, you can usually find something usefull in $_SERVER['HTTP_USER_AGENT'];
Begby
Forum Regular
Posts: 575
Joined: Wed Dec 13, 2006 10:28 am

Post by Begby »

Bubblenut already answered your question once before in your previous post here

viewtopic.php?t=66031
Locked