Re: delete file contents (sorry if i posted this twice, problem with signing up)
| From: | Miles Thompson | Date: | Tue, 11 Dec 2001 18:20:02 +0000 |
| Subject: | Re: delete file contents (sorry if i posted this twice, problem with signing up) | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-14938@lists.php.net to get a copy of this message | ||
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 +0000, 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 -- 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