PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hey guys... I need help again. I have a page which i use to post news, after i submit it goes to a file that writes the information to a document which is included on the main page. The problem is, when i post new news, its added below the older news. Is there any way to tell it to write it at the top instead of the bottom?
You could write the existing file to a temp file then write the new stuff into the existing file the write the stuff from the temp file back in.
Might not be effiecient but it would work.
Do you not access to a db to store the stories in because you could then just time stamp the each record and then order them by date/time.