A PHP Class for Detecting Client Agent Information by Chip Chapin

Chip's Home > WebTools > OtherTools > ccBrowserInfo    

Page Revision History

  • 2002-11-07 Minor update.
  • 2002-10-29 Initial Release.

ccBrowserInfo is a simple PHP class for browser (user agent) detection. It provides sufficient browser differentiation to handle most common coding problems.

A more elaborate solution is to use phpSniff ( phpSniff is much more rigorous in discerning user agent distinctions, offers more functions, and has a considerable amount of field usage. But it is too elaborate for my taste or needs. The phpSniff home page itself is a demonstration of phpSniff, and offers a wealth of useful information.

ccBrowserInfo is directly inspired by browser.php from the SourceForge 2.5 distribution. Other influences are sniffer.js from Netscape, as distributed with HTML_TreeMenu (, and phpSniff.

The first version of ccBrowserInfo was created 2002-01-01, by Chip Chapin.

Your ccBrowserInfo Results ...

Here are the results from ccBrowserInfo for your current client:

Source Code

Click here to see the ccBrowserInfo source code in a new window:



A SourceForge project.
The Browserlist Project at
Useful listings of user agent strings, but mostly inactive since June 2000. See especially here.



Valid HTML 4.0! Valid CSS! Chip's Home Page

Updated Monday November 18, 2002 19:43:06 PST