|
发表于 2011-3-14 11:32:17
|
显示全部楼层
本帖最后由 jeongee 于 2011-3-14 11:35 编辑
貌似不用先生成,再下载吧,再删除这个流程吧
就直接将内容发送到浏览器就可以了
- ////header("Content-Type: application/force-download");
- ////header("Content-Type: application/octet-stream");
- ////header("Content-Type: application/download");
- ////header('Content-Disposition:inline;filename="'.$outputFileName.'"');
- ////header("Content-Transfer-Encoding: binary");
- ////header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
- ////header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
- ////header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
- ////header("Pragma: no-cache");
- ////$objWriter->save('php://output');
想方便的话
你可以使用下载辅助函数里的force_download函数 |
|