note 52257 added to function.get-browser
| From: | pal at degerstrom dot com | Date: | Tue, 26 Apr 2005 13:13:54 +0000 |
| Subject: | note 52257 added to function.get-browser | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-88561@lists.php.net to get a copy of this message | ||
This might be useful for some until the Gary Keith updates his library. I added this to my
browscap.ini to detect the latest Safari update for Panther, and the new Safari in Tiger:
;;; Added manually 05.04.19 for Safari 1.3
[Mozilla/5.0 (Macintosh; U; PPC Mac OS X; *) AppleWebKit/* (*) Safari/31?]
parent=Safari
version=1.3
majorver=1
minorver=3
;;; Added manually 05.04.26 for Safari 2.0 (Shipped with Tiger)
[Mozilla/5.0 (Macintosh; U; PPC Mac OS X; *) AppleWebKit/* (*) Safari/41?]
parent=Safari
version=2.0
majorver=2
minorver=0
Note: Full $_SERVER['HTTP_USER_AGENT'] for Safari 2 (Tiger) is
Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/412 (KHTML, like Gecko) Safari/412
(Disclaimer: I do not know if the entries above conform to whatever syntax standard Gary uses in his
file, but it works fine for me).
Pål Degerstrøm
----
Manual Page -- http://www.php.net/manual/en/function.get-browser.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+52257
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52257&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52257&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52257&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52257&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52257&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+52257&report=yes
Search -- http://master.php.net/manage/user-notes.php