Update index.php
This commit is contained in:
parent
fb542b6af8
commit
42a6b63035
1 changed files with 1 additions and 1 deletions
|
@ -38,11 +38,11 @@
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
// read and display file
|
||||||
$myfile = fopen("posts.txt", "r") or die("Unable to open file!");
|
$myfile = fopen("posts.txt", "r") or die("Unable to open file!");
|
||||||
echo fread($myfile,filesize("posts.txt"));
|
echo fread($myfile,filesize("posts.txt"));
|
||||||
fclose($myfile);
|
fclose($myfile);
|
||||||
?>
|
?>
|
||||||
<?php echo readfile("posts.txt"); ?>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Reference in a new issue