1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Use file browscap.ini
This guide is about "browscap.ini", a configuration file used by the PHP "browscap" library that contains information about web browsers and their characteristics, such as their name, version, compatible operating systems, navigation capabilities, etc.
Information on the file
The file "browscap.ini" reflects the latest information on web browsers. It can be used with PHP scripts that require the "browscap" library.
The phpinfo indicates where the file is browscap.ini, i.e.:
/opt/php/lib/php/browscap.ini
You can recover the contents of the file yourself via a PHP script e.g.:
<?php
header("Content-type: text/plain");
print file_get_contents("/opt/php/lib/php/browscap.ini");
?>
Note that the "browscap" library is no longer widely used and that many developers prefer other solutions to detect browsers, such as the native PHP function "get_browser()".