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" <[EMAIL PROTECTED]> wrote in message
001001c1210f$900f6a80$0e7398cd@thadius">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
>



-- 
PHP Database Mailing List (http://www.php.net/)
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