RE: [PHP] Searching for text in a file

2001-09-10 Thread Kelly Barrett
Hi Richard, First, I think it should be: $variable = "[EMAIL PROTECTED]"; instead of: > $line_text= "[EMAIL PROTECTED]"; as you overwrite $line_text with your fgets. Also: > if ($variable = trim($line_text)) { Should be: if ($variable == trim($line_text)) { Otherwise you are do

Re: [PHP] Searching for text in a file

2001-09-10 Thread David Robley
On Mon, 10 Sep 2001 16:41, Richard Kurth wrote: > I am having a problem with searching through a file for a curtain > text. Like the text below [EMAIL PROTECTED] does not exists in the file > but when I run this it gives me a Match at line number. > I need to run three or four names at a