I am generating CSV file locally and then upload to ftp using fwrite().
However I get the file destroyed after uploading to FTP.
When I compare the local copy and the ftp copy I see that my local file is fine and ftp copy has no line breaks.
What can it be related to? Would fputcsv() solve the problem?
Thank you