通过下面的代码 可是现实在ie中ssl模式下下载文件
         header("Cache-control: private, must-revalidate");
header("Pragma: hack");
header("Content-type: application/zip");
header("Content-transfer-encoding: binary\n");
header("Content-disposition: attachment; filename=$newname");
header("Content-Length: ".filesize($filename));
readfile($filename);这种方式 是当链接存在 如index.php?downloadid=1 点击之后 就可以下载文件了
我现在需要的方式是 打开某个页面 就直接下载文件 前提是页面的内容要输出
不可以用js方式的document.location.href=""希望高手指教