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>
|
<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"); ?>
|
||||||
|
|
Reference in a new issue