The first line saves fine and in subsequent calls the additional text appends perfectly when run locally but when run on the server only the first line saves and then seems to ignore all following attempts to save. Even if the file on the server is deleted and then I attempt to save for the 'first' time it brings back the original line that was saved the first time the file was created.
$file = 'sentQuotes-' . date("dmy") .'.txt';
$addNewQuote = "\r\n" .date("d/m/y") ."\t" .$email ."\t" .$qty ."\t" .$scent ."\t" .$customerPrice;
// the LOCK_EX flag to prevent anyone else writing to the file at the same time
file_put_contents($file, $addNewQuote, FILE_APPEND | LOCK_EX);
unset($addNewQuote);