furpsocial
");
} else {
fwrite($myfile, "anon: " . htmlspecialchars($_POST["body"]) . "
");
}
fclose($myfile);
}
// read from file
$myfile = fopen("posts.txt", "r") or die("Unable to open file! (r)");
echo fread($myfile,filesize("posts.txt"));
fclose($myfile);
?>