> -----Original Message-----
> From: Michael Satterwhite [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 20, 2006 8:32 PM
> To: PHP Users
> Subject: [PHP] Stream download problem
> 
> I have a site that generates a file to be streamed down. The relevant
> code is:
> ----------------------------------------------------------
> header("Content-type: application/vnd.ms-excel");
> header("Content-disposition: attachment; filename=$EXPORT_TIME.txt");
> header("Content-disposition: attachment");



You're overwritting the Content-disposition header with one that doesn't
supply a suggested filename.  The first Content-disposition header is
not being sent at all, so IE is guessing at a filename.  Take a look at
the headers your browser is receiving.  You'll probably find that's
what's going on.


kgt

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

Reply via email to