Emptying a text file?
Posted: Thu Jan 11, 2007 11:30 pm
hello again lol.
i have a simple news script, and its just perfect, ive made it for somebody who dosent know much and they have their own form to add news, the news goes into a .txt file and its exported to a certain part of his page.
what i want to do is add a link or button to empty that file, so that when his little news section gets full, he just hits delete and it emptys that file ready for more news.
is there a function or something for this? i had a look on php.net but nothing i can see there.
thanks.
i have a simple news script, and its just perfect, ive made it for somebody who dosent know much and they have their own form to add news, the news goes into a .txt file and its exported to a certain part of his page.
what i want to do is add a link or button to empty that file, so that when his little news section gets full, he just hits delete and it emptys that file ready for more news.
is there a function or something for this? i had a look on php.net but nothing i can see there.
thanks.