$fp = fopen('/var/mail/myaccount','w');

that could work. I was going to suggest doing:

But I assume that since you're against deleting it, then there must be 
some sort of permissions in place that you don't want changed.


"Sex is like air. It's not important unless you're not getting any."
   -- Unknown

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 General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to