[PHP] matching certain values

2003-09-18 Thread Louie Miranda
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 :(


-
Louie

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] matching certain values

2003-09-18 Thread Jason Wong
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
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] matching certain values

2003-09-18 Thread Louie Miranda
thanks for the reference. strpos will be good for my problem.


- Original Message -
From: Jason Wong [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 18, 2003 4:11 PM
Subject: Re: [PHP] matching certain values


 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
 */

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php