note 50533 rejected from function.fopen by didou
| From: | didou@php.net | Date: | Thu, 03 Mar 2005 09:53:58 +0000 |
| Subject: | note 50533 rejected from function.fopen by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-85859@lists.php.net to get a copy of this message | ||
Note Submitter: andreas dot sandin at brun7 dot tk
----
Hi!
Would consider myself a beginner at PHP. Am writing a very simple guestbook. Messages are simply
stored in .txt-file which the guestbook script reads through when entering the site. My problem is
how to be able to append messages in the beginning of the file without overwriting existing
messages. Now, the latest added message is added at the end of the file and therefor also at the
bottom of the guestbook. Have tried with the different parameters w, a, and r+ when the script opens
the file. Is this solvable or should I start to think about using a database?
Thankful for any help at all.