note 52257 deleted from function.get-browser by danbrown
| From: | danbrown@php.net | Date: | Tue, 18 May 2010 15:15:00 +0000 |
| Subject: | note 52257 deleted from function.get-browser by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-169366@lists.php.net to get a copy of this message | ||
Note Submitter: pal at degerstrom dot com
----
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