PHP Classes
elePHPant
Icontem

Sniff Response: Detect the browser type and capabilities category

Recommend this page to a friend!
  Info   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2010-01-05 (6 years ago) RSS 2.0 feedNot enough user ratingsTotal: 740 All time: 4,326 This week: 964Up
Version License Categories
sniffresponse 1.0GNU Lesser Genera...HTTP, PHP 5
Description Author

This class can be used to detect the user browser type and its category based on expected capabilities.

The class analyzes the user agent string and depending on the detected browser type it can assign to one of 4 groups: not OK, just OK, modern, and unknown. The browser name and version is also detected.

This class can help generating pages according to the detected browser capabilities, like for instance: outputting warnings, generating crude HTML that is browser independent, etc.

Picture of Grant Rodney Paton-Simpson
Name: Grant Rodney ... <contact>
Classes: 2 packages by
Country: New Zealand New Zealand

  Files folder image Files  
File Role Description
Accessible without login Plain text file banner.css Data CSS for phpDocumentor file
Accessible without login Image file bh_80x15.gif Icon image for example script
Accessible without login Plain text file browser_not_ok.php Example Example response
Plain text file class.SniffResponse.php Class PHP5 Class
Plain text file class.SniffResponse4.php Class PHP4 Class
Accessible without login HTML file SniffResponse4_phpDocumentor.html Doc. Detailed PHP4 documentation
Accessible without login HTML file SniffResponse_phpDocumentor.html Doc. Detailed PHP5 documentation
Accessible without login HTML file SniffResponse_User_Documentation.html Doc. Examples and Explanation
Accessible without login Plain text file stylesheet.css Data CSS for phpDocumentor file

 Version Control Unique User Downloads Download Rankings  
 0%
Total:740
This week:0
All time:4,326
This week:964Up