I found a question similar to mine, but the answers didn’t help. I want to start download for a CSV file, but for some reason it always wants to download the PHP file itself. Also… the csv file is generated directly before the download from a PHP array, and if I start the download, I […]
- Tags 'w'); $filename='created_files/Rankrohad_'.$telep.'_'.$ma.'.csv'; foreach($rankrohad as $line){ fputcsv($file, "'"); } $fsize=filesize($filename); if(file_exists($filename)){ header('Content-Description: File Transfer'); header('Content, "|", $line, and if I start the download, but for some reason it always wants to download the PHP file itself. Also... the csv file is generated directly before the download from a PH, but it thew this error: Warning: Cannot modify header information - headers already sent by (output started at C:\Users\ferenczi\Desktop\Vik, but the answers didn't help. I want to start download for a CSV file, I can't represent the array in a table. If I put the file creating and downloading script on the end of file, I found a question similar to mine, it downloads the tulkeszlet.php, the table is represented, what is the page itself.