<?php
//Skrypt zapisujący
$file = fopen('nazwapliku.txt', 'a');
$dataToFile = "Imie i Nazwisko \n Data urodzenia \n Inne dane";
fwrite($file, $dataToFile);
fclose($file);
?>
//Skrypt odczytujący
$file = fopen('nazwapliku.txt', 'r');
while(!feof($file)) { echo fgets($file). "<br />";} fclose($file);
" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2025 KUDO.TIPS - All rights reserved.
<?php
//Skrypt zapisujący
$file = fopen('nazwapliku.txt', 'a');
$dataToFile = "Imie i Nazwisko \n Data urodzenia \n Inne dane";
fwrite($file, $dataToFile);
fclose($file);
?>
<?php
//Skrypt odczytujący
$file = fopen('nazwapliku.txt', 'r');
while(!feof($file)) {
echo fgets($file). "<br />";
}
fclose($file);
?>