homepage Welcome to WebmasterWorld Guest from 54.227.89.236
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
How to get the browser info in PHP
Using HTTP_USER_AGENT
circuitjump




msg:1309394
 5:29 pm on Jul 12, 2001 (gmt 0)

Just a quick question.
I was wondering how I can get the operating sytem with $HTTP_USER_AGENT?
I saw in a different post that to get the borwser you do $HTTP_USER_AGENT (browser).
So would it be $HTTP_USER_AGENT (os) or something similar for the OS?
Thanks

 

littleman




msg:1309395
 6:31 pm on Jul 12, 2001 (gmt 0)

Often, but not always, the OS is identified by the browser's U_A. Here are some examples:
Mozilla/4.7 [en] (WinNT; U)
Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)
Mozilla/4.51 [en]C-CCK-MCD (Win95; I)
Mozilla/4.76 [en] (X11; U; Linux 2.2.17-21mdk i686)

You'll have to extract that info from it.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved