[PHP] Re: delete file contents before writing?

2002-06-03 Thread Peter
$file_open = fopen($file_name, w); this will empty the existing file contents then write to the file Jas [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Not sure how I could do this as I could not find a functions on php.net to allow me to first delete the

[PHP] Re: Delete File Contents?

2001-12-17 Thread Matt Friedman
http://www.php.net/manual/en/function.ftruncate.php Chris writes: I've created a program that runs a process then stores the results to a file on the server. I would like the file to contain only the most recent update, but it seems I can only append to my using fopen. Is there a way