I am trying to make a file download in my script with the following code:
<?php
$size = filesize($myfile);
header("Content-Type: application/zip");
header("Content-Length: $size");
header("Content-Disposition: attachment; filename=$myfile");
header("Content-Transfer-Encoding: binary");
$fh = fopen($myfile, "r");
fpassthru($fh);
exit;
?>
It works perfectly with IE, but when I try with Netscape, the browser tries to save the file in the "PKCS12"-Type (though it is a ZIP file!).
Please help! Any help would be highly appreciated!