> 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
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.
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
3 matches
Mail list logo