Find and edit text files via PHP
<p>Let say a text file contain</p>

<blockquote>
  <p>Hello everyone, My name is Alice, i stay in Canada.</p>
</blockquote>

<p>How do i use php to find "Alice" and replace it with "John".</p>

<pre><code>    $filename = "C:\intro.txt";
 $fp = fopen($filename, 'w');
 //fwrite($fp, $string);
 fclose($fp);
</code></pre>
