Re: [PHP] deleting file contents

2001-12-11 Thread Krzysztof Kocjan
recreate it, for example: <% exec( 'type > your_file_name' ); %> Krzysztof DigitalKoala wrote: > 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

Re: [PHP] deleting file contents

2001-12-11 Thread Kurt Lieber
On Tuesday 11 December 2001 09:00 am, DigitalKoala wrote: > 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 this? Well, you can read the contents of the original file into a PHP variable using fopen(). Then, use something

[PHP] deleting file contents

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