Hey, im pretty new to php, and i've been coding a forum which adds extra rows to tables with information on, but my problem arises because i want each new row to appear above the one before, this is because everything is written to a txt file in html, and each new entry is added to the bottom of the file. I need the new data to be added to the top of a file, i heard this can be done by setting the file pointer? How do i do this, i am using the fwrite function to write the data to the file.
Any ideas?