在safari浏览器上使用php导出文件失败
修改为以下头部信息
      @header('Content-Description: File Transfer');
        @header('Content-Type: application/octet-stream');
        @header("Content-Type: application/force-download");
        @header('Content-Disposition: attachment; filename=' . $filename);
        @header('Expires: 0');
        @header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
        @header('Pragma: public');
        @header('Content-Length: ' . filesize($filename));
 
                     
                    
                 
                    
                
 
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号