Ok, I can write to a text file no problem
Here is the code I'm using: minus < >
?php
// Designate the text file
$filename ="output.txt";
// Open the text file
$handle= fopen($filename,'a');
// Write the message to the text file
fputs($handle, "<b>$date : <font color='Maroon'>$title</b></font><br>");
fputs($handle, "$content <br><br>");
// Close text file
fclose($handle);
?
My question is, how do I write to the top of the text file each time, so that the latest news is displayed first when read from the text file?