Re: deleting file contents
| From: | Krzysztof Kocjan | Date: | Tue, 11 Dec 2001 17:21:11 +0000 |
| Subject: | Re: deleting file contents | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-77319@lists.php.net to get a copy of this message | ||
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 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? many thanks anna