Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I don't think this is the "best" solution to detect is a browser supports what you need for your website :</p> <ul> <li>first of all, browsers can lie -- they can send whatever thay want as <code>User-Agent</code> <ul> <li>And even if a given version of a support should support what you need, Javascript can still be disabled.</li> </ul></li> <li>second, there are more "proper" way to detect what a browser can do or not, when it comes to Javascript.</li> </ul> <p>For the second point, you should test if the browser actually supports what you need -- and not rely on a list such as the browscap one.</p> <p><br> Still, to answer your question about <a href="http://php.net/manual/en/misc.configuration.php#ini.browscap" rel="noreferrer"><code>browscap</code></a> : there is a note at the bottom of the manual page for <a href="http://php.net/manual/en/function.get-browser.php" rel="noreferrer"><code>get_browser</code></a> that says <em>(quoting)</em> :</p> <blockquote> <p><strong>Note:</strong> In order for this to work, your <a href="http://php.net/manual/en/misc.configuration.php#ini.browscap" rel="noreferrer"><code>browscap</code></a> configuration setting in php.ini must point to the correct location of the <code>browscap.ini</code> file on your system. <code>browscap.ini</code> is not bundled with PHP, but you may find an up-to-date <a href="http://browscap.org/stream?q=PHP_BrowsCapINI" rel="noreferrer">» <code>php_browscap.ini</code></a> file here. <br>While <code>browscap.ini</code> contains information on many browsers, it relies on user updates to keep the database current. The format of the file is fairly self-explanatory.</p> </blockquote> <p>So, you have to :</p> <ul> <li>download the browscap file,</li> <li>and set the <code>browscap</code> directive in your <code>php.ini</code> file, so it points to the file you downloaded.</li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload