Vince-Omatic
06-06-2006, 06:32 AM
hi,
I have this script which works wonderfully for writing to a txt for a guestbook.
<?php
$myFile = "guestbook.o";
$fh = fopen($myFile, 'a') or die("can't open file");
$stringData = "Name: " . $v_name . "<br>" . "Email: " . $v_email . "<br>" . "Comment: " ."<br>". $v_comment . "<br>" . "<br>";
fwrite($fh, $stringData);
echo "Comment Posted!";
fclose($fh);
?>
How can I get this to open from the top so the new comments are on top?
Thanks,
Vince
I have this script which works wonderfully for writing to a txt for a guestbook.
<?php
$myFile = "guestbook.o";
$fh = fopen($myFile, 'a') or die("can't open file");
$stringData = "Name: " . $v_name . "<br>" . "Email: " . $v_email . "<br>" . "Comment: " ."<br>". $v_comment . "<br>" . "<br>";
fwrite($fh, $stringData);
echo "Comment Posted!";
fclose($fh);
?>
How can I get this to open from the top so the new comments are on top?
Thanks,
Vince