Quote:
|
Originally Posted by punky
You see the last line where it says print? That outputs it to the screen. If you want to to write to a file, change the line to...
Code:
$filename = "/absolute/path/to/file.csv"; // define file name to write to
$handle = fopen($filename, "wb"); // open the file for write binary safe mode
fwrite($handle, $header . "\n" . $data); // write data to file
fclose($handle); // close the open file.
HTH
|
That more than helped! Fantastic! I'd rep you more than once if it were possible.