PHP Classes
elePHPant
Icontem

Request Info User Agent: Detect the type of browser accessing the site

Recommend this page to a friend!
  Info   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2009-02-15 (7 years ago) RSS 2.0 feedNot enough user ratingsTotal: 730 All time: 4,362 This week: 924Up
Version License PHP version Categories
request_user_agent 1.0BSD License5.0HTTP, PHP 5
Description Author

This class can be used to detect the type of browser accessing the site.

It can parse the user agent identification sent by the browser or robot accessing the site and extract the browser type and other details.

Currently it can determin whether the browser is a regular browser, a search engine crawler, a mobile phone, the user operating system, etc..

Picture of Frédéric Thizy
Name: Frédéric Thizy <contact>
Classes: 1 package by
Country: France France

  Files folder image Files  
File Role Description
Files folder imageData (1 file)
Files folder imagetest (1 file, 1 directory)
Plain text file UserAgent.php Class The main class.
Plain text file Exception.php Class Exception

  Files folder image Files  /  Data  
File Role Description
  Accessible without login Plain text file refUA.php Data The detection data

  Files folder image Files  /  test  
File Role Description
Files folder image_data (3 files)
  Plain text file UserAgentTest.php Class Unit test, see it for exemples

  Files folder image Files  /  test  /  _data  
File Role Description
  Accessible without login Plain text file syntheseFunction.php Example exemple for make stat with the xml file
  Accessible without login Plain text file testReadCache.php Data other file for test
  Accessible without login Plain text file UA.xml Data users agents for test

 Version Control Unique User Downloads Download Rankings  
 0%
Total:730
This week:0
All time:4,362
This week:924Up