note 56665 added to function.get-browser
| From: | cadu at ig dot com dot br | Date: | Sun, 11 Sep 2005 20:59:45 +0000 |
| Subject: | note 56665 added to function.get-browser | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-95025@lists.php.net to get a copy of this message | ||
I think borwscap.ini from http://www.garykeith.com/browsers/downloads.asp
(recommended on this page) is the best way to get browser detection working. Unfortunately the PHP
parser is different from MS, but it's worse.
The author had to make a different version to work with PHP, because it looks for the first match,
and not for the best match. Currently PHP is telling users running Firefox they're running
Mozilla.
I hope PHP coders will fix it soon.
----
Manual Page -- http://www.php.net/manual/en/function.get-browser.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+56665
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56665&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56665&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56665&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56665&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56665&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56665&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+56665&report=yes
Search -- http://master.php.net/manage/user-notes.php