$dosya = "deneme.txt"; $fh = fopen($dosya, 'w') or die("dosya açılamadı"); $data = "İçerik Buraya\n"; fwrite($fh, $data); fclose($fh);