ChrisB: application/force-download Problem mit Leerzeichen

Beitrag lesen

Hi,

header("Content-Description: File Transfer
Content-Type: application/force-download
Content-Disposition: attachment;filename=$datei");
readfile($datei);

Allerdings erhalte ich bei Downloaden eine HTNML-Datei und keine Excel-Datei, die es ist. Der nAme der Datei enthält ein Leerzeichen, ich habe irgendwo gelesen, dass das ein problem sein könnte.
Wie kann ich dieses Problem beheben ?

PHP Manual zu header, [strg]+[f], "content-disposition"

MfG ChrisB

--
Light travels faster than sound - that's why most people appear bright until you hear them speak.