linereader

This commit is contained in:
awesomeuser 2023-08-04 15:37:34 +00:00
parent fbeb1dfe2e
commit 13f8e3c1cb

View file

@ -147,7 +147,7 @@
}
</script>
<h1 class="feed-header">Farp highlights</h1>
<!--<h1 class="feed-header">Farp highlights</h1>-->
</div>
@ -179,12 +179,17 @@
fclose($myfile);
}
//<canvas id="canvas-input" width="128" height="64"></canvas>
// show content
$myfile = fopen("posts.txt", "r") or die("Unable to open file!");
echo fread($myfile, filesize("posts.txt"));
fclose($myfile);
?>
$myfile = fopen("inputfile.txt", "r") or die("Unable to open file!");
if ($myfile) {
while (($line = fgets($myfile)) !== false) {
echo $line;
}
fclose($myfile);
}
?>
</div>
</div>