text file question
Posted: Thu Jan 14, 2010 5:47 pm
Hello, would anyone know the php command to clear or delete the whole contents of a text file, not just a single line but all the contents?
thanks
thanks
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
file_put_contents('/path/to/file.txt', '');