<?php
$file = fopen("test2.csv","r");
while(! feof($file)) {
print_r(fgetcsv($file));
$textfilename=[0].".txt";
file_put_contents ([1]);
}
fclose($file);
?>
This will take data like
Array (
[0] => name
[1] => download information
)
Array (
[0] => Sense and Sensibility Instant Digital Download
[1] => Please visit the following link to download your digital product: http://archive.org/download/0_sense_and_sensibility_librivox/Sense_Sensibility_1107_64kb_mp3.zip
)
and for each 0 => make that the file name. Then store [1] into the file and save it. But i'm running into an error.