Re: [PHP] How to secure a download ?

2003-06-01 Thread Alex Earl
> header("Content-type: application/zip"); > header("Content-Disposition: attachment; filename=yourfilename.zip"); > readfile("/path/to/yourfilename.zip"); > I have found that to make sure it works with all browsers you want to put quotes around the filename in the content-disposition header. hea

Re: [PHP] How to secure a download ?

2003-05-31 Thread Evan Nemerson
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.

[PHP] How to secure a download ?

2003-05-31 Thread Vincent M.
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. -- PHP General