Quote:
|
Originally Posted by alane
Thanks for that minority.
Can you give idea how to do this in php as I cannot use asp. Sorry to be a pain.
I'll also try posting question in php forum so thanks for idea.
|
Try:
$zfile = "testfile.zip";
// the file to deliver...
$filename = "/home/mysite/files/$zfile";
// stream image out to browser
header('Content-type: application/x-zip-compressed');
header('Content-transfer-encoding: binary');
header("Content-Disposition: attachment; filename=$zfile");
header('Content-length: '.filesize($filename));
readfile($filename);
That's the simple way to do it. There's a fancier way but I don't have the code handy.