linereader
This commit is contained in:
parent
fbeb1dfe2e
commit
13f8e3c1cb
1 changed files with 10 additions and 5 deletions
15
index.php
15
index.php
|
@ -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>
|
||||||
|
|
Reference in a new issue