Page 1 of 1

Deleting Text in a File

Posted: Sat Apr 15, 2006 11:00 am
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?

Posted: Sat Apr 15, 2006 11:03 am
by feyd
delete all the text in a file?

Code: Select all

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