if you have a string:
$string = "hello world";
and you have a huge file
when you use fwrite($file, $string)
wil it write over the file or will it put the string at the end of the file?
never mind I answered my own question.
Maybe this is stupid, but how then do you add a string to the end of a file?
Try using fopen() with the "a" option instead.
http://www.php.net/manual/en/function.fopen.php