note 27506 added to function.get-browser
| From: | verx at implix dot com | Date: | Mon, 09 Dec 2002 08:57:39 +0000 |
| Subject: | note 27506 added to function.get-browser | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-40562@lists.php.net to get a copy of this message | ||
Please keep in mind that you should somehow (for example in session) cache the required results of
get_browser() because it really slows thinks down.
We have experienced that without querying for browser data our scripts would run 120-130% faster.
the explanation is that over 200kb long file (browscap.ini) has to be loaded and parsed everytime
someone access any page (we need browser results on all pages).
So keep results in session and expect a performance boost.
--
http://www.php.net/manual/en/function.get-browser.php
http://master.php.net/manage/user-notes.php?action=edit+27506
http://master.php.net/manage/user-notes.php?action=delete+27506
http://master.php.net/manage/user-notes.php?action=reject+27506