Bir metin dosyası içerir diyelim
Herkese Merhaba, Benim adım i Kanada'da kalmak, Alice.
Nasıl "Alice" bulmak ve "John" ile değiştirmek için php kullanmak yok.
$filename = "C:\intro.txt";
$fp = fopen($filename, 'w');
//fwrite($fp, $string);
fclose($fp);