News Feed
Jobs Feed
Sections




News Archive
DotVoid.com:
Parsing the user agent string using PHP
January 29, 2007 @ 15:11:57

On the Dotvoid.com blog today, there's a new post that shares some handy code to parse out information from the incoming user agent string for the visitors for your site.

Recently I experimented a bit with an Apache log file analyzer written in PHP. It's not all that difficult were it not for trying to parse the browser, or user agent, string. [...] For my purposes I don't care much for the operating system details. This is the result so far. I'm still not very satisfied but I thought maybe other people might be interested and maybe help out.

He provides the code in the format of an encapsulated PHP function that returns the product they're using, the version number of the browser and other various comments.

0 comments voice your opinion now!
parse user agent string regular expression string parse user agent string regular expression string


blog comments powered by Disqus

Similar Posts

Marc Gear's Blog: How to learn a new PHP framework

PHPMaster.com: Bending XML to Your Will

PHPFreaks.com: Regular Expressions (Part1) - Basic Syntax

Kae Verens' Blog: pre-parsing HTML for incorrectly-sized images

SomeCoders.com: Member Managment System Using PHP, AJAX and script.aculo.us (Part 3)


Community Events











Don't see your event here?
Let us know!


example release series code interview language zendframework2 conference object testing composer podcast tool opinion development functional database community introduction framework

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework