php3-list | 199903
Date: 03/25/99
- Next message: Manuel Lemos: "Re: [PHP3] "loading please wait" screen...how to?"
- Previous message: listuser: "[PHP3] Re[2]: [PHP3] forcing php to start another page."
- In reply to: Leon Atkinson: "RE: [PHP3] Multithreading in PHP3"
- Next in thread: Raka: "RE: [PHP3] Multithreading in PHP3"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> Put the files outside of the Web server's root. You can use readfile() to
> send a file directly to the browser. Minimally this would be something like
>
> <?
> $Filename = "bar.tgz";
> header("Content-type: */*; name=\"$FileName\"");
> header("Content-Disposition: attachment; filename=\"$FileName\"");
> readfile("/foo/$Filename");
> ?>
>
> The two header() calls will force the browser to download the file instead
> of displaying it in the browser window, and hopefully suggest the correct
> name for it.
>
> Leon
Hi!
I can add, that header Content-Disposition is not used by IE4.0 (I'm not
sure how about older versions) - for me it generates some random string.
In case of Netscape all seems to work correctly
Rem
-------------------------------------------------------------------*------------
Remigiusz Sokolowski e-mail: rems <email protected> * *
-----------------------------------------------------------------*****----------
-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3 List administrator: zeev-list-admin <email protected>
- Next message: Manuel Lemos: "Re: [PHP3] "loading please wait" screen...how to?"
- Previous message: listuser: "[PHP3] Re[2]: [PHP3] forcing php to start another page."
- In reply to: Leon Atkinson: "RE: [PHP3] Multithreading in PHP3"
- Next in thread: Raka: "RE: [PHP3] Multithreading in PHP3"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

