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