Something wrong here, I have just implemented it and found that although the CSV file can be downloaded, it contains a loop of error messages:
Here's one of the loops...
<br />
<b>Warning</b>: fopen() expects at least 2 parameters, 1 given in <b>/home/results.php</b> on line <b>137</b><br />
<b>Warning</b>: fputcsv() expects parameter 1 to be resource, null given in <b>/home/results.php</b> on line <b>141</b><br />
<br />