Re: HTTP_USER_AGENT and preg_match

From: Date: Tue, 23 Jan 2001 02:42:35 +0000
Subject: Re: HTTP_USER_AGENT and preg_match
Groups: php.general 
Request: Send a blank email to php-general+get-36131@lists.php.net to get a copy of this message
Got it in the end. It should be: <snip> if ((preg_match("/Mozilla/i", "$agent")) && (preg_match("/Gecko/i", "$agent"))) { $result = "You are using Netscape 6 or a later version of Mozilla."; <snip> But the thought occurs that there must be a site out there somewhere which lists the HTTP_USER_AGENT tags for *all* browsers? -- ****************************************************************************** Marx: "Why do Anarchists only drink herbal tea?" Proudhon: "Because all proper tea is theft." ******************************************************************************

« previous php.general (#36131) next »