Hi!,
I a php noob so sorry if this is a stupid question,
I have a little code that puts some data in a file
which works very well.
I want to instead of append to the file I want
to overwrite the contents of it.
??
-------------------existing code-------------------
<?php
$filename = "justatest.txt";
$output = "SOME_DATA_HERE";
$filehandle = fopen($filename, 'a');
fwrite($filehandle, $output);
fclose($filehandle);
?>