Deleting Text in a File

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
GRPsuper
Forum Newbie
Posts: 18
Joined: Fri Apr 14, 2006 9:47 pm

Deleting Text in a File

Post by GRPsuper »

what is the code i would need if i wanted to delete the text in a php file with a chmod set to 7,7,7,7?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

delete all the text in a file?

Code: Select all

$fp = fopen($file, 'wb');
fclose($fp);
Post Reply