Re: get_browser();
| From: | Gary | Date: | Tue, 19 Feb 2002 00:20:31 +0000 |
| Subject: | Re: get_browser(); | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-85317@lists.php.net to get a copy of this message | ||
Greg Donald wrote:
Is that going to catch the Mozilla spoofers, like webtv and opera? GaryUltimately, I'm trying to figure out how I can determine if the user is using NS 4.x or not...Use this to identify Netscape 4.x: if(strstr($HTTP_USER_AGENT,"Mozilla/4") && !strstr($HTTP_USER_AGENT,"MSIE")){// is Netscape 4} else {// is something else} ------------------------------------------------------------------------ Greg Donald - http://destiney.com/ http://phprated.com/ | http://phplinks.org/ | http://phptopsites.com/ ------------------------------------------------------------------------