You are here

README.txt in Browscap 5

Same filename and directory in other branches
  1. 8 README.txt
  2. 6.2 README.txt
  3. 6 README.txt
  4. 7.2 README.txt
  5. 7 README.txt
The browscap module provides a replacement for PHP's get_browser() function.
get_browser() is difficult (or impossible) to configure for most
users in shared webhosting situations, and requires attention to keep the
underlying data (browscap.ini) up-to-date. This module avoids the
configuration issue by storing the data in a database table, and the
freshness issue by automatically retrieving the latest data on a 
weekly basis from http://www.garykeith.com/ (if cron.php is run regularly).

Also, statistics on browsers visiting the site may be captured by
enabling monitoring in the browscap settings.

Installation

1. Place the browscap folder in the modules directory of your 
Drupal installation.

2. Import the browscap.mysql file into your MySQL database (or the
browscap.pgsql file into your PostgresSQL databse).

3. Enable the browscap module in the administration tools.

4. Go to http://www.example.com/cron.php to perform the initial import
of the browscap data.

API

Modules wishing to make use of browscap data may call
browscap_get_browser() anywhere they would otherwise call get_browser()
(see http://us3.php.net/manual/en/function.get-browser.php). Note that
browser_name_regex is not returned - otherwise, the results should be
identical to calling get_browser().

Credits

Mike Ryan (drupal@virtuoso-performance.com) is the author and maintainer 
of this module. 

Thanks to Gary Keith (http://www.garykeith.com/) for providing 
regular updates to the browscap data, and specifically for adding
a non-zipped CSV version of browscap to support this module.

File

README.txt
View source
  1. The browscap module provides a replacement for PHP's get_browser() function.
  2. get_browser() is difficult (or impossible) to configure for most
  3. users in shared webhosting situations, and requires attention to keep the
  4. underlying data (browscap.ini) up-to-date. This module avoids the
  5. configuration issue by storing the data in a database table, and the
  6. freshness issue by automatically retrieving the latest data on a
  7. weekly basis from http://www.garykeith.com/ (if cron.php is run regularly).
  8. Also, statistics on browsers visiting the site may be captured by
  9. enabling monitoring in the browscap settings.
  10. Installation
  11. 1. Place the browscap folder in the modules directory of your
  12. Drupal installation.
  13. 2. Import the browscap.mysql file into your MySQL database (or the
  14. browscap.pgsql file into your PostgresSQL databse).
  15. 3. Enable the browscap module in the administration tools.
  16. 4. Go to http://www.example.com/cron.php to perform the initial import
  17. of the browscap data.
  18. API
  19. Modules wishing to make use of browscap data may call
  20. browscap_get_browser() anywhere they would otherwise call get_browser()
  21. (see http://us3.php.net/manual/en/function.get-browser.php). Note that
  22. browser_name_regex is not returned - otherwise, the results should be
  23. identical to calling get_browser().
  24. Credits
  25. Mike Ryan (drupal@virtuoso-performance.com) is the author and maintainer
  26. of this module.
  27. Thanks to Gary Keith (http://www.garykeith.com/) for providing
  28. regular updates to the browscap data, and specifically for adding
  29. a non-zipped CSV version of browscap to support this module.