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.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php