使用php将数据导出到ms word

使用php将数据导出到ms word,php,export,header-files,Php,Export,Header Files,我想将表导出到带有php标题的ms word,但需要将文档的列表类型更改为album if (isset($_GET['export']) && $_GET['export'] == 1) { header("Content-type: application/vnd.ms-word"); header("Content-Disposition: attachment;Filename=filename.doc"); } 你所说的相册的文档列表类型是什么意思?哦

我想将表导出到带有php标题的ms word,但需要将文档的列表类型更改为album

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

你所说的相册的文档列表类型是什么意思?哦,对不起,我是说“文档的页面类型”