RE: [PHP-DB] fopen function
| From: | Michael Rudel | Date: | Fri, 10 Aug 2001 07:51:23 +0000 |
| Subject: | RE: [PHP-DB] fopen function | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-11209@lists.php.net to get a copy of this message | ||
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:mru@suchtreffer.de
internet: http://www.suchtreffer.de
_______________________________________________________________
> -----Original Message-----
> From: Nathan Cavicchi [mailto:speros@m-y.net]
> Sent: Thursday, August 09, 2001 10:12 PM
> To: php-db@lists.php.net
> 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: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>