Tutorial Read/Write Files
Append to a file function fileWrite($file, $message) { fwrite(fopen($file, 'a'), $message . "\n"); } Read and display en...
https://iskablogs.blogspot.com/2014/03/tutorial-readwrite-files.html
Append to a file
function fileWrite($file, $message) {
fwrite(fopen($file, 'a'), $message . "\n");
}
Read and display entire file
function fileRead($file){
$lines = file($file);
foreach ($lines as $line_num => $line) {
echo $line, '';
}
}
function fileWrite($file, $message) {
fwrite(fopen($file, 'a'), $message . "\n");
}
Read and display entire file
function fileRead($file){
$lines = file($file);
foreach ($lines as $line_num => $line) {
echo $line, '';
}
}