PHP ? Re: Writing to files.
PHP ? Re: Writing to files.
- Started
- Last post
- 2 Responses
- nburlington
I want to write to a txt file through a php script but I don't want to append the data all the time. I want it to write the new data at the top of the document.
The fopen() modes only let you append as far as I can tell. Is there a workaround?
- REDWOOD0
Nope, just put the information in your session with the POST method after a ? and make a page to read this info.
After you've closed the session you lose the info ofcourse.
- van_rijn0
why not rock it with MySQL. can sort by date/time without showing the date