Re: matching certain values

From: Date: Thu, 18 Sep 2003 08:11:08 +0000
Subject: Re: matching certain values
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-162963@lists.php.net to get a copy of this message
On Thursday 18 September 2003 15:55, Louie Miranda wrote: > Im trying to match some words on the value that i have impost on php. > But i dont know why it doesnt seem to catch some certain fields. > > if ($HTTP_USER_AGENT === 'MSIE ') > > I know something is wrong :( Did you *try* finding out what is wrong? Simple things like echo $HTTP_USER_AGENT to see what it really contains? And if you're only matching part of a string you should be using things like strpos() or preg_match() etc. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* A straw vote only shows which way the hot air blows. -- O'Henry */

« previous php.general (#162963) next »