RE: [PHP] Can you make a file empty?

From: Date: Wed, 21 Feb 2001 07:19:40 +0000
Subject: RE: [PHP] Can you make a file empty?
Groups: php.general 
Request: Send a blank email to php-general+get-40903@lists.php.net to get a copy of this message
you can simply delete the file and use touch() to create a new empty one. http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=160 Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. -----Original Message----- From: jan@lillemanshus.com [mailto:jan@lillemanshus.com] Sent: Tuesday, February 20, 2001 8:47 PM To: php-general@lists.php.net Subject: [PHP] Can you make a file empty? Hi! I am trying to delete all text in a file. $yourfile = "file.txt"; $fp = fopen($yourfile,w) "is there any good code to put in here?" fclose($fp); Thanks for any help. Regards Jan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#40903) next »