Re: FOXED - no success in replacing file content using fgets/fputs and str_replace
| From: | Patrick Teague | Date: | Thu, 27 Jun 2002 13:21:46 +0000 |
| Subject: | Re: FOXED - no success in replacing file content using fgets/fputs and str_replace | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-104155@lists.php.net to get a copy of this message | ||
> 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