Hello,
[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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]