Re: Re: Bug #14653 Updated: Internet Explorer for Macintoshreceives bad HTTP header info from PHP Header()
| From: | Manuel Lemos | Date: | Sun, 23 Dec 2001 03:12:01 +0000 |
| Subject: | Re: Re: Bug #14653 Updated: Internet Explorer for Macintoshreceives bad HTTP header info from PHP Header() | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-74840@lists.php.net to get a copy of this message | ||
Hello,
derick@php.net 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