phpexcel导出Excel后, 服务器目录下会生成   php(随机名称).tmp , 文件, 好像导出一次生成一次, 怎么回事

解决方案 »

  1.   

    header("Content-Type: application/vnd.ms-excel; charset=UTF-8");
    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("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"); --------------这是我的代码, 看着好像是no-cache