Re: [PHP-DB] delete file contents (sorry if i posted this twice, problem with signing up)

2001-12-12 Thread Dobromir Velev
Tuesday, December 11, 2001 19:09 Subject: [PHP-DB] delete file contents (sorry if i posted this twice, problem with signing up) >Hi Everyone, > >I'm running a script that automatically reads lines from >/var/mail/myaccount, parses the lines then insert specific items into a >

Re: [PHP-DB] delete file contents (sorry if i posted this twice, problem with signing up)

2001-12-11 Thread Miles Thompson
Anna, Check the docs, but I believe if you fopen() with the "w" flag it overwrites the contents. Miles At 05:03 PM 12/11/2001 +, DigitalKoala wrote: >Hi Everyone, > >I'm running a script that automatically reads lines from >/var/mail/myaccount, parses the lines then insert specific items i

[PHP-DB] delete file contents (sorry if i posted this twice, problem with signing up)

2001-12-11 Thread DigitalKoala
Hi Everyone, I'm running a script that automatically reads lines from /var/mail/myaccount, parses the lines then insert specific items into a database this is in a loop What i want to do is then delete the contents of the file, but not the file itself...can you tell me the best way to do thi