note 13347 added to function.get-browser.php
| From: | nick at category4 dot com | Date: | Tue, 12 Jun 2001 20:21:24 +0000 |
| Subject: | note 13347 added to function.get-browser.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-14421@lists.php.net to get a copy of this message | ||
Here's a quick way to test for a Netscape browser. IE and Konqueror and several others call
themselves "Mozilla", but they always qualify it with the word "compatible."
$isns = stristr($HTTP_USER_AGENT, "Mozilla") && (!(stristr($HTTP_USER_AGENT,
"compatible")));
http://www.php.net/manual/en/function.get-browser.php