Re: empty file's content?
| From: | Raditha Dissanayake | Date: | Mon, 16 Feb 2004 18:52:57 +0000 |
| Subject: | Re: empty file's content? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-177842@lists.php.net to get a copy of this message | ||
Hi,
not sure why you want to do that when removing is so much easier but here goes:
open the file for writing and close it without writing anything to it.
Mike Mapsnac wrote:
How can I empty a file's content through php defined functions? Thanks-- Raditha Dissanayake. ------------------------------------------------------------------------ http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 150 KB | with progress bar.