diff --git a/index.php b/index.php
index dac0dd3..58b215b 100644
--- a/index.php
+++ b/index.php
@@ -147,7 +147,7 @@
}
-
+
@@ -179,12 +179,17 @@
fclose($myfile);
}
+ //
// 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);
+ }
+ ?>