3vi1: Download Script geht nicht in IE5

echo ($light == true) ? 'Guten Tag,' : 'Guten Abend,';

ich möchte gern die Downloads von Dateien zählen. Dazu benutze ich folgendes Script:

  
header("Pragma: public");  
header("Expires: 0");  
header("Pragma: no-cache");  
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");  
header("Cache-Control: private",false);  
header("Content-Transfer-Encoding: binary");  
header("Content-Length: " . filesize($dateiname));  
header("Content-type: application/pdf");  
header("Content-Disposition: attachment; filename=\"".$dateiname."\";" );  
readfile($dateiname);  
die();  

Der Download funktioniert in IE6/7,FF usw. Im IE5.5 bekomme ich zwar den Dialog zum Download angezeigt, aber der Download startet nicht wenn ich auf speichern klicke. Weiß jemand wie ich dieses Problem beheben kann?

Danke schon mal.

Markus

--
Das Böse ist grau ... color:#666;
  1. Hello,

    die();

    hat das die() einen speziellen Grund? Keine Ahnung ob's daran liegt, aber vielleicht stirbt dein Skript zu spontan. Alternativ könnte es noch sein, dass er sich an den ganzen Verfallsdaten stört.  
      
    MfG  
    Rouven  
    
    -- 
    \-------------------  
    Computer programming is tremendous fun. Like music, it is a skill that derives from an unknown blend of innate talent and constant practice. Like drawing, it can be shaped to a variety of ends: commercial, artistic, and pure entertainment. Programmers have a well-deserved reputation for working long hours but are rarely credited with being driven by creative fevers. Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination, but because their imagination reveals worlds that others cannot see. -- Larry OBrien and Bruce Eckel in Thinking in C#
    
    1. echo ($light == true) ? 'Guten Tag,' : 'Guten Abend,';

      na ja sie dient dazu das Script zu verlassen ohne den Rest noch abzulaufen. Aber ich habe sie mal entfernt, hat sich nichts geändert, der Dialog kommt, aber der Download startet nicht.

      Grüße

      Markus

      --
      Das Böse ist grau ... color:#666;