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