note 78322 deleted from function.get-browser by cmb
| From: | cmb@php.net | Date: | Sun, 23 Feb 2020 08:54:17 +0000 |
| Subject: | note 78322 deleted from function.get-browser by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-214189@lists.php.net to get a copy of this message | ||
Note Submitter: digibrisk at gmail dot NOSPAM dot SPAMNO dot com
----
If the "browscap" directive isn't set in your server's php.ini, then an error
warning is shown. Just in case, you could make a call to ini_get() to check if the browscap
directive is set before using browser_get().
<?php
if(ini_get("browscap")) {
$browser = get_browse(null, true);
}
?>