php-developer-list | 2001122
Date: 12/22/01
- Next message: mlemos <email protected>: "[PHP-DEV] Bug #14665: ifx_fetch_row returns string non-zero terminated for selected LVARCHAR fields"
- Previous message: jason <email protected>: "[PHP-DEV] Bug #14648 Updated: pcntl_signal(SIGCHLD, SIG_IGN) does not follow expected behavior on linux"
- In reply to: derick <email protected>: "Re: [PHP-DEV] Re: Bug #14653 Updated: Internet Explorer for Macintosh receives bad HTTP header info from PHP Header()"
- Next in thread: Fred B: "Re: [PHP-DEV] Re: Bug #14653 Updated: Internet Explorer for Macintosh receives bad HTTP header info from PHP Header()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: mlemos <email protected>: "[PHP-DEV] Bug #14665: ifx_fetch_row returns string non-zero terminated for selected LVARCHAR fields"
- Previous message: jason <email protected>: "[PHP-DEV] Bug #14648 Updated: pcntl_signal(SIGCHLD, SIG_IGN) does not follow expected behavior on linux"
- In reply to: derick <email protected>: "Re: [PHP-DEV] Re: Bug #14653 Updated: Internet Explorer for Macintosh receives bad HTTP header info from PHP Header()"
- Next in thread: Fred B: "Re: [PHP-DEV] Re: Bug #14653 Updated: Internet Explorer for Macintosh receives bad HTTP header info from PHP Header()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

