使用php将数据导出到ms字

时间:2017-02-12 05:48:21

标签: php export header-files

我希望导出表到带有php标题的ms字,但是需要将文档的列表类型更改为专辑

if (isset($_GET['export']) && $_GET['export'] == 1) 
{
    header("Content-type: application/vnd.ms-word");
   header("Content-Disposition: attachment;Filename=filename.doc");
}

0 个答案:

没有答案