Ok, complete newbie here! Right, so how would I modify the code below to append the new data to the beginning?
Sorry if this has been answered elsewhere, but the search was unsuccessful :S Help would be greatly appreciated.
<?php
$filename ="text.txt";
$handle= fopen($filename,'a);
$string = "$name";
fputs($handle, $string);
fclose($handle);
?>
Thanks!