Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199903

RE: [PHP3] Multithreading in PHP3 From: Remigiusz Sokolowski (rems <email protected>)
Date: 03/25/99

> 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>