$site = fopen('dosyanın adresi',"w+")) {
fwrite($site,$cumle);
fclose($site);

Bunu Kendine Göre Geliştirirsin Hocam