you can rewrite it :
$fp = fopen($yourfile, "w"
fwrite ($fp,$yourdata);
fclose ($fp);
read the doc on fopen to know all about the options ("w" is for write only and it removes what was previously in the file - if there was something in it)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.