Deleting Text in a File
Moderator: General Moderators
Deleting Text in a File
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?
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
delete all the text in a file?
Code: Select all
$fp = fopen($file, 'wb');
fclose($fp);