Update index.php

This commit is contained in:
awesomeuser 2023-08-01 21:04:20 +00:00
parent fb542b6af8
commit 42a6b63035

View file

@ -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>