使用header头下载word文档出错

浏览:1398 发布日期:2017/04/18 分类:求助交流
使用phpword类下载的header("Content-type: application/vnd.ms-word"); 
        header("Content-Disposition:attachment;filename=666.docx"); 
        header('Cache-Control: max-age=0'); 
        $objWriter = PHPWord_IOFactory::createWriter($PHPWord, 'Word2007'); 
        $objWriter->save('php://output'); 
最佳答案
评论( 相关
后面还有条评论,点击查看>>