Categories

Updated: 07/23/2007

Standalone Browscap class

The browscap.ini file is a database maintained by Gary Keith at http://browsers.garykeith .com/ which provide a lot of details about browsers and their capabilities, such as name, versions, javascript support and so on. PHP''s native get_browser() function parses this file and provide you with a complete set of information about every browsers details but it requires the path to the ini file to be specified in the PHP.ini browscap directive (and it is flagged as PHP_INI_SYSTEM). Browscap is a class for PHP5 that gets over and manages the whole thing. It offers method to update, cache, adapt and get details about every supplied user agent on a standalone basis. From version 0.7 the class updates the database automatically based on a user-defined interval.
©2003-2019 jCay.com