> I check for the occurrence of the search string
> if($pos=strpos ($line, $strfrom))

I hope this isn't exactly the way it is in your code. It should be 2 "="s.
> if($pos==strpos ($line, $strfrom))

otherwise with only 1 = you assign the right hand value to the left hand
variable even within the if statement.  Could this be the problem you've
been having?

Hope this helps.

Patrick



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

Reply via email to