Update index.php
This commit is contained in:
parent
ffaa766ff0
commit
a3ca3ef875
1 changed files with 3 additions and 3 deletions
|
@ -108,9 +108,9 @@
|
||||||
<div class="post" id="refresh" onclick="window.location.href = 'index.php'">refresh feed</div>
|
<div class="post" id="refresh" onclick="window.location.href = 'index.php'">refresh feed</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
// // make sure the file, well, exists
|
// ensure the file exists before attempting to read from it
|
||||||
// $myfile = fopen("posts.txt", "a");
|
$myfile = fopen("posts.txt", "a");
|
||||||
// fclose($myfile);
|
fclose($myfile);
|
||||||
|
|
||||||
// show content
|
// show content
|
||||||
$myfile = fopen("posts.txt", "r") or die("Unable to open file!");
|
$myfile = fopen("posts.txt", "r") or die("Unable to open file!");
|
||||||
|
|
Reference in a new issue