delete content of a .txt file using <a href..?
Posted: Mon Nov 30, 2009 6:56 am
Hello,
How can i write a html <a href..> and when i click it, a content of a .txt file should be erased?
I tried with
But each time the page is loaded, the content is erased. So not when i click on that link
Please help.
Thanks
How can i write a html <a href..> and when i click it, a content of a .txt file should be erased?
I tried with
Code: Select all
<a href="$fp = fopen("in.txt", w); fclose($fp);">Sterge continut fisier intrare</a>
Please help.
Thanks