Hello!!!
I’m getting mad
I have to write a script which has to open a .csv file from a folder and then copy the content, allow me to modificate it, and save it in the same folder (inside my project /var/www/…). So… the script has to open a .csv file, then the content has to be copied in another csv file and save this new file in the same folder where is the old one.
Any suggestion?
I was trying to create the new file with fopen and save it with fputcsv but it seems not working
".print_r($data,true).''; // tag pre preformatt the text } if (!copy($fp, $newfile)) { echo "failed to copy $fp...\n"; } fclose($newfile); fclose ( $fp ); // it closes the pointer ?>