note 15495 deleted from function.get-browser by irc-html
| From: | irc-html@php.net | Date: | Mon, 21 Jan 2002 05:37:54 +0000 |
| Subject: | note 15495 deleted from function.get-browser by irc-html | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-25610@lists.php.net to get a copy of this message | ||
I had to test for Windows because I was setting a file to download to the client computer from a
UNIX server, and the carriage returns are different. Here is a tiny little string that works (tested
on Win/IE, Win/Netscape, Solaris/IE and Solaris/Netscape.)
if(strstr(getenv('HTTP_USER_AGENT'), 'Win')) {
$os = "Windows";
}
else {
$os = "Not Windows";
};