downloading variable data

A

Anonymous

Guest
it is very possible to do that.

Before you echo anything out to the browser you will have to send a header call with the file type.

lookup http://www.php.net/header
Code:
header("Cache-control: private");
header("Content-type: application/zip"); 
header("Content-disposition:attachment; filename=$filename");
 
Back
Top