how to delete a text...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kujtim
Forum Commoner
Posts: 35
Joined: Sat Oct 25, 2003 4:00 am
Location: kosovo
Contact:

how to delete a text...

Post 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..
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post 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
Post Reply