Re: fopen function
| From: | Steve Brett | Date: | Fri, 10 Aug 2001 10:08:12 +0000 |
| Subject: | Re: fopen function | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-11216@lists.php.net to get a copy of this message | ||
use rewind() to set the file pointer to the beginning of the file.
check out the filesystem functions in the help manual, there are loads of
useful functions.
Steve
"Nathan Cavicchi" <speros@m-y.net> wrote in message
news:001001c1210f$900f6a80$0e7398cd@thadius...
>
> I made a simple submissions form that writes to a backup file using the
> fopen function. I use the variable a+ or a, for the backup. it goes to
the
> end of the file and adds the new info. I need it to add the new data at
the
> beginning of the file, but leave the file in tact. Does anyone have any
> ideas on how to accomplish this. I couldnt really find anything at
> php.net.....
>
> Nathan
>