parsing $_SERVER["HTTP_USER_AGENT"]

This is a discussion on parsing $_SERVER["HTTP_USER_AGENT"] within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Can anyone tell me how to parse the seemingly arcane String returned by: $_SERVER["HTTP_USER_AGENT"] Thanbks, Ike...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-06-2005
Ike
 
Posts: n/a
Default parsing $_SERVER["HTTP_USER_AGENT"]

Can anyone tell me how to parse the seemingly arcane String returned by:

$_SERVER["HTTP_USER_AGENT"]

Thanbks, Ike


Reply With Quote
  #2 (permalink)  
Old 02-06-2005
Andy Hassall
 
Posts: n/a
Default Re: parsing $_SERVER["HTTP_USER_AGENT"]

On Sun, 06 Feb 2005 14:45:41 GMT, "Ike" <rxv@hotmail.com> wrote:

>Can anyone tell me how to parse the seemingly arcane String returned by:
>
>$_SERVER["HTTP_USER_AGENT"]


There's not much in the way of specifications for this field; the standards
say:

http://www.w3.org/Protocols/rfc2616/....html#sec14.43
and reference
http://www.w3.org/Protocols/rfc2616/...c3.html#sec3.8

There's http://uk2.php.net/function.get-browser, which uses browscap.ini, a
common list of known User-Agent strings.

--
Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:12 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0