This commit is contained in:
awesomeuser 2023-08-04 17:50:04 +00:00
parent 9cc39a28e2
commit e7beb544c5

View file

@ -209,7 +209,7 @@
$myfile = fopen("posts.txt", "r") or die("Unable to open file!"); $myfile = fopen("posts.txt", "r") or die("Unable to open file!");
if ($myfile) { if ($myfile) {
$index = 0; $index = 0;
while (($line = strip_tags(fgets($myfile))) != " ") { while (mb_strlen($line = strip_tags(fgets($myfile))) > 1) {
echo "<div class='post'><h2>" . $line . "</h2>"; echo "<div class='post'><h2>" . $line . "</h2>";
echo "<i>" . strip_tags(fgets($myfile)) . "</i>"; echo "<i>" . strip_tags(fgets($myfile)) . "</i>";
echo "<canvas id='c" . $index . "' style='width: 100%;' width='128' height='64'></canvas></div>"; echo "<canvas id='c" . $index . "' style='width: 100%;' width='128' height='64'></canvas></div>";