Page 1 of 1

how to delete a text...

Posted: Wed Dec 03, 2003 4:39 am
by kujtim
how can i delete a text in tu the document thet i have savet before
by clicing on the buttom and make me be able to vrite a new text in the document file..

Posted: Wed Dec 03, 2003 4:49 am
by JayBird
take a look at [php_man]fopen[/php_man] and especially the different modes you can use to open the file. I suggest using mode 'w'. This will open the file, delete the old contents then you can write the new contents.

Mark