}
$filename = "$filename.$extension";
+ $output = '';
if ($entetes and is_array($entetes) and count($entetes)) {
$output = exporter_csv_ligne($entetes, $delim, $importer_charset);
}
$length += fwrite($fp, $output);
}
fclose($fp);
-
if ($envoyer) {
+ ob_start();
Header("Content-Type: text/comma-separated-values; charset=$charset");
Header("Content-Disposition: attachment; filename=$filename");
//non supporte