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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php