account for break
This commit is contained in:
parent
8d22f146dd
commit
9cc39a28e2
1 changed files with 2 additions and 2 deletions
|
@ -209,8 +209,8 @@
|
||||||
$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 = fgets($myfile)) !== false) {
|
while (($line = strip_tags(fgets($myfile))) != " ") {
|
||||||
echo "<div class='post'><h2>" . strip_tags($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>";
|
||||||
|
|
||||||
|
|
Reference in a new issue