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>
|
||||
|
||||
<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>
|
||||
|
|
Reference in a new issue