I have a small PHP script which outputs to a file using "fopen" and the "w" switch eg:
$myFile = "1.html";
$file = fopen($myFile, 'w') or die("cant open file");
$stringData =" stuff here ";
fwrite($file, $stringData);
fclose($file);
this sits at the bottom of the product layout and outputs some code to a file beautifully. All works well on the first upload pass.
The "w" switch does not appear to be overwriting the existing file at the next upload.
Any suggestions how or why the second upload will not generate new files?
$myFile = "1.html";
$file = fopen($myFile, 'w') or die("cant open file");
$stringData =" stuff here ";
fwrite($file, $stringData);
fclose($file);
this sits at the bottom of the product layout and outputs some code to a file beautifully. All works well on the first upload pass.
The "w" switch does not appear to be overwriting the existing file at the next upload.
Any suggestions how or why the second upload will not generate new files?
Comment