[英]How to Export HTML page in Excel Using PHP
I want to export my web page in excel file.我想将我的网页导出为 excel 文件。 below code -
下面的代码 -
<?php
$file="My_Excel.xls";
header("Content-type: application/vnd.ms_excel");
header("Content-Disposition: attachment; filename=$file");
?>
Not working please suggest.不工作请建议。
Right Code is -正确的代码是 -
<?php
$file="My_Excel.xls";
header("Content-type: application/vnd.ms-excel");
header("Content-Disposition: attachment; filename=$file");
?>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.