Luca: PHP-Script erzeugt CSV-Datei - welcher Header?

Beitrag lesen

hab es so

header('Content-Type: ' . $mime_type);
// lem9 & loic1: IE need specific headers

if (USR_BROWSER_AGENT == 'IE') {
  header('Content-Disposition: inline; filename="' . $filename . '.' . $ext . '"');
  header('Expires: 0');
  header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
  header('Pragma: public');
}
else
{
  header('Content-Disposition: attachment; filename="' . $filename . '.' . $ext . '"');
  header('Expires: 0');
  header('Pragma: no-cache');
}

... und so probiert

header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename="$full_filename"");