PHP Excel Header

后端 未结 4 707
迷失自我
迷失自我 2020-12-06 01:13
header(\"Content-Type:   application/vnd.ms-excel; charset=utf-8\");
header(\"Content-type:   application/x-msexcel; charset=utf-8\");
header(\"Content-Disposition:          


        
4条回答
  •  爱一瞬间的悲伤
    2020-12-06 01:34

    The problem is you typed the wrong file extension for excel file. you used .xsl instead of xls.

    I know i came in late but it can help future readers of this post.

提交回复
热议问题