Update index.php

This commit is contained in:
awesomeuser 2023-08-01 21:03:44 +00:00
parent 03d3e53e23
commit fb542b6af8

View file

@ -38,8 +38,8 @@
<hr> <hr>
<?php <?php
$myfile = fopen("posts.txt", "w") or die("Unable to open file!"); $myfile = fopen("posts.txt", "r") or die("Unable to open file!");
fwrite($myfile, $_POST["signature"] + ": " + $_POST["body"] + "<br>"); echo fread($myfile,filesize("posts.txt"));
fclose($myfile); fclose($myfile);
?> ?>
<?php echo readfile("posts.txt"); ?> <?php echo readfile("posts.txt"); ?>