Login   Register  
PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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 (5 years ago) RSS 2.0 feedNot enough user ratingsTotal: 707 All time: 4,228 This week: 1,347Up
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
Age: 37
All time rank: 250869 in France France
Week rank: 1784 Up55 in France France Up

  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:707All time:4,228
 This week:0This week:1,347Up