Justtechjobs.com Find a programming school near you






Online Campus Both


php-developer-list | 2001122

Re: [PHP-DEV] Re: Bug #14653 Updated: Internet Explorer for Macintoshreceives bad HTTP header info from PHP Header() From: Manuel Lemos (mlemos <email protected>)
Date: 12/22/01

Hello,

derick <email protected> wrote:
>
> On Sat, 22 Dec 2001, Roman Neuhauser wrote:
>
> > > Can you suggest a workaround since it appears that lots of
> > > PHP code uses this PHP Header() redirect to setup files for
> > > users to download from sites?
> >
> > don't you need a content-type or sumthing as well?
>
> Header ("Content-Type: application/download\n");
> Header ("Content-Disposition: attachment; filename='filename.zip'\n");

AFAIK, headers do not have line break characters.

Anyway, to make it really work, in the PHP Classes repository downloads
I don't use the attachement attribute of Content-Disposition but I also
use Content-Location header. Since a lot of people use download manager
like GetRight, I put the a dummy attribute in the URL so it looks like:
http://phpclasses.UpperDesign.com/browse.html/file/filename.zip .

Regards,
Manuel Lemos

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>