Followed the steps presented on Beginner PHP Tutorial - How To Detect a Visitors Browser and got different result.
Run the following code:
<?php
$browser = get_browser(null, true);
echo $browser['browser'];
?>
Result on Google Chrome:
Instead of displaying Chrome, the browser displayed Default Browser.
Files in my folder:
- browscap.ini - C:\xampp\php\extras
- php.ini - clearly specified the path of browscap.ini as shown below;
[browscap]
; http://php.net/browscap
browscap="C:\xampp\php\extras\browscap.ini"
What should I do to get the correct type of browser to be displayed on the page?