In the era of search engine optimization, many webmaster tools are available for use by webmasters to find out about different aspects of their domains and sites. One tool provided is ‘Browser Details’ which indicates your browser capabilities.
There are different browsers available in the market having different versions. These different versions of browsers are available with their inbuilt capabilities. Therefore, browser details tool is useful for determining browser capabilities the user has used.
< ? $browser = get_browser(); ?>
In order for this to work, your browscap configuration setting in php.ini must point to the correct location of the browscap.ini(browser capabilities file) file on your system and if it is not set properly then gives warning like :
Warning: get_browser() [function.get-browser]: browscap ini directive not set.
To solve this problem, you have to give correct path of browscap.ini file in php.ini file like :
browscap = “/home/…/folder/browscap.ini”
The format of browscap.ini file is self-explanatory and thus get_browser() function is used for displaying browser details by reading thru browscap.ini.