I'm having an issue where the following php script works as expected and writes the following array data to a csv file on my local machine, but when I upload this script to the server the csv file (located on the server) isn't written to when expected.
<?php
$csvData = array($info1, $info2, $info3, $info4, $answer4, $answer5, $answer6, $answer8, $answer9, $answer10, $answer12);
$fp = fopen('data.csv', 'a');
fputcsv($fp, $csvData);
fclose($fp);
?>
Thank you in advance for any help.