Re: help with parse

From: Date: Wed, 04 Apr 2001 16:10:01 +0000
Subject: Re: help with parse
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-47087@lists.php.net to get a copy of this message
The reason it worked, is that you were setting the value of $HTTP_USER_AGENT to "Mozilla" by using a single = That operation was succesful, so the result was true. Therefore the if() clause was being executed. On 4/3/01 6:15 PM, "Wade DeWerff" <wdewerff@kc.rr.com> wrote: > ugh, ok, I was without php support for a bit, ok the script works, except > that it doesnt work...it prints even when browser is IE. > > > -----Original Message----- > From: Jason Murray <Jason.Murray@melbourneit.com.au> > To: Jason Murray <Jason.Murray@melbourneit.com.au>; 'WD' > <suedeuno@yahoo.com>; php-general@lists.php.net <php-general@lists.php.net> > Date: Tuesday, April 03, 2001 7:54 PM > Subject: RE: [PHP] help with parse > > >>>> <?php >>>> if ($HTTP_USER_AGENT = "Mozilla") >>> >>> ^ This needs to be "==" >> >> Actually, it needs to be " if(substr($HTTP_USER_AGENT, "Mozilla"))". >> >> *slap.self* >> >> Jason >> >> -- >> Jason Murray >> jasonm@melbourneit.com.au >> Web Design Team, Melbourne IT >> Fetch the comfy chair! >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >> For additional commands, e-mail: php-general-help@lists.php.net >> To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#47087) next »