I've managed to get php code to post to the bottom of a file, but how can I get it to post to the top of a file without wiping out all of the previous entry? I can't seem to find the correct parameter. Any help would be much appreciated. I've enclosed the code I'm currently using below:
<?
$filename = "older/$fname";
$newstring = "$content";
$myfile = @fopen($filename, "w+") or die("Couldn't open file.");
@fwrite($myfile, $newstring) or die("Couldn't write to file.");
$msg = "<p>It worked.</p>";
fclose($myfile);
?>
Even if you can't help me, thanks for reading this.
-Elijah