Re: How to secure a download ?
| From: | Evan Nemerson | Date: | Fri, 30 May 2003 23:27:27 +0000 |
| Subject: | Re: How to secure a download ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-149616@lists.php.net to get a copy of this message | ||
header("Content-type: application/zip");
header("Content-Disposition: attachment; filename=yourfilename.zip");
readfile("/path/to/yourfilename.zip");
On Friday 30 May 2003 03:34 pm, Vincent M. wrote:
> Hello,
>
> Is there any way to launch a download of a Zip file to the user without
> a link. The user must not know where the file is on the server.
>
> The transfert of the file must be made by a php file with special
> headers, no ?
>
> header("Content-type: zip"); or something...
>
>
> Thanks.
--
Ocean: A body of water occupying 2/3 of a world made for man -- who has no
gills.
-Ambrose Bierce