PHP TXT Yazma
1 2 3 4 5 |
<?php $kontrol = fopen("dosya.txt", "a") or exit(""); fwrite($kontrol,"\n"."yazılacak içerik"); fclose($kontrol); ?> |
1 2 3 4 5 |
<?php $kontrol = fopen("dosya.txt", "a") or exit(""); fwrite($kontrol,"\n"."yazılacak içerik"); fclose($kontrol); ?> |
1 2 3 4 5 6 7 8 9 10 11 |
<?php header('Content-Type: text/html; charset=utf-8'); $file = fopen("dosya.txt",'r'); while(!feof($file)){ $satir = fgets($file); echo "$satir <br />"; } fclose($file); ?> |