I think a content-length header might prevent this.



Petras Virzintas wrote:

>Hi, if I use the script below, IE either crashes AFTER downloading or just hangs. Is 
>there a correct way of "finishing" a download? I have tried placing empty standard 
>HTML tags at the end. This stops the crashing but adds the actual tags as an extra 
>line to the downloaded file.
>Thanks in advance
><script language="php">
>header("Content-Type: application/octet-stream");
>header("Content-Disposition: attachment; filename=\"$FileName\"");
>header("Content-Transfer-Encoding: ascii");
>print "123,$456.78,wewewe,sdsdsd"."\r\n";
>print "89,$32.10,erererer,asasasas"."\r\n";

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to