On Mon, 2002-06-03 at 11:37, Jas wrote: > Not sure how I could do this as I could not find a functions on php.net to > allow me to first delete the entire contents of a file "before" writting the > changes supplied by a textarea. Here is what I have thus far:
Just fopen a file with the 'w' mode when you want to clear/truncate it before writing to it. $file_open($file_name,'w'); ... would probably do what you want. Toby -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php