Hey, i used this code, but everytime i executed it, it only wrote the line to the file, and erased the content already in the file.
CODE:
$reference = " <table> <tr><td><img src=bullet.gif></td> <td colspan=2> <A Href='".$rndnum.".php'><b>$subject</b></a></td></tr><tr><td></td><td <width=15></td><td>Gestart door $name ($date) </td></tr> </table>\r\n";
$rp = fopen(basename($PHP_SELF).".reference","r+");
fwrite ($rp,$reference);
fclose($rp);
WHAT I NEED
is a file where every time the php is executed a new line is added at the beginning of the page
f.e.
1. This is submitted on 01:00
2. This is submitted on 00:50
Thanx