I am in the task that to write long text (or binary) strings in a php or HTML file and I wanted to know how can I update the file, because whenever I command it to write, it happens that string is added (append) and this file becomes great more and more, the function which I am using is like this:
$fname="generated.html"
$path="file:///C:/apache/htdocs/dir/";
$fp = fopen("$fname", "a");
$cod=$cod1.$cod2.$cod3;
fputs($fp,"$subj");
fclose($fp);
what parameter must i use instead of "a"?
or i have to make a "deletefile and write once again"?
thanks a mega
sadmin