Hi Nathan,
... nope, there's no function for this, you have to do it for yourself.
Try something like:
file()
fopen() // "w" !
fputs() // your new entries
while ( )
{
fputs() // write the array from file after your new entries
}
fclose()
... that's it, pretty easy =8)
Hope this helps.
Greetinx,
Mike
Michael Rudel
- Web-Development, Systemadministration -
Besuchen Sie uns am 20. und 21. August 2001 auf der
online-marketing-düsseldorf in Halle 1 Stand E 16
_______________________________________________________________
Suchtreffer AG
Bleicherstraße 20
D-78467 Konstanz
Germany
fon: +49-(0)7531-89207-17
fax: +49-(0)7531-89207-13
e-mail: mailto:[EMAIL PROTECTED]
internet: http://www.suchtreffer.de
_______________________________________________________________
> -----Original Message-----
> From: Nathan Cavicchi [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 09, 2001 10:12 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-DB] fopen function
>
>
>
> 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]
>
--
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]