RE: Stream download problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Michael Satterwhite [mailto:michael@xxxxxxxxxxx]
> Sent: Tuesday, June 20, 2006 8:32 PM
> To: PHP Users
> Subject:  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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux