Naydav
29.02.2008, 20:16
$f = fopen('export.csv', "w");
$csv = "test";
fwrite($f,$csv) or die("Not wtite");
header("Content-type: csv/plain");
header("Content-Disposition: attachment; filename=export.csv");
header("Content-length:".(string)(strlen($csv)));
Скачивает файл с нулевым размером...
Подскажите, что нужно исправить?
$csv = "test";
fwrite($f,$csv) or die("Not wtite");
header("Content-type: csv/plain");
header("Content-Disposition: attachment; filename=export.csv");
header("Content-length:".(string)(strlen($csv)));
Скачивает файл с нулевым размером...
Подскажите, что нужно исправить?