Update index.php
This commit is contained in:
parent
03d3e53e23
commit
fb542b6af8
1 changed files with 2 additions and 2 deletions
|
@ -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"); ?>
|
||||
|
|
Reference in a new issue