ok this will print it backwards, but if you use this-> append the message then the date/b
$arr=file("whatever.txt");
for($i=0; $i<count($arr); $i++){
$ln=((count($arr)-1)-$i);
echo $arr[$ln] . "<br>\n";
}
example of how i meant to write it to the file
$a=fopen("whatever.txt","a");
$date="Date [-".date("m-d-y, H:m:s") . "-]\n\n";
$msg="some message\n";
$msg.="Message:\n";
fwrite($a,$msg);
fwrite($a,$date);
fclose($a);
hope that helped