From 04056f91846ae5a54f5fd0f167ec487deb2a996c Mon Sep 17 00:00:00 2001 From: awesomeuser Date: Tue, 1 Aug 2023 21:14:53 +0000 Subject: [PATCH] test filewriting --- index.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index 04b83a6..3ce47a9 100644 --- a/index.php +++ b/index.php @@ -38,14 +38,17 @@
"); + fclose($myfile); + + // read from file $myfile = fopen("posts.txt", "r") or die("Unable to open file!"); echo fread($myfile,filesize("posts.txt")); fclose($myfile); ?> -
you: -