Login   Register  
PHP Classes
elePHPant
Icontem

Simple Browser Detection: Determine the type of browser

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 (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2006-07-21 (8 years ago) RSS 2.0 feedStarStarStar 47%Total: 1,184 All time: 2,968 This week: 1,885Up
Version License Categories  
browsertypeclass 1.0Freely DistributableHTTP
Description Author  

This is a very simple class that can be used to determine which browser is being used to access the site.

The class looks the user-agent name identification and looks for text that match what is used by several known browsers.

It returns a string with two characters that is an abbreviation of the identified browser. If the browser could not be identified, it returns an empty string.

Picture of Patrick Mahoney
Name: Patrick Mahoney <contact>
Classes: 1 package by
Country: United States United States
Age: 48
All time rank: 1948251 in United States United States
Week rank: 1874 Up216 in United States United States Up

  Files folder image Files  
File Role Description
Plain text file browserType.class.php Class This is the actual class source

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,184All time:2,968
 This week:0This week:1,885Up
User Ratings User Comments (1)  
 All time
Utility:79%StarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:47%StarStarStar
Rank:1769
 
Excellent
5 years ago (kishore kumar)
60%StarStarStarStar