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...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |