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.

"Nathan Cavicchi" <[EMAIL PROTECTED]> wrote in message
> 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
> end of the file and adds the new info.  I need it to add the new data at
> 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
> Nathan

PHP Database Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to