代码
<?php
// 输出Excel文件头,可把user.csv换成你要的文件名
include_once("../includes/global.php");
header("Content-type:application/vnd.ms-excel");
header("Content-Disposition:filename=test.xls");
echo "FirstName\t";
echo "LastName\t";
echo "Prefix\t";
echo "Title\t";
echo "CompanyName\t";
echo "CompanyAddress\t";
echo "Tel\t";
echo "Fax\t";
echo "Email\t";
echo "ColorID\t";
echo "BreakoutSessionsBox\t";
echo "SubscribeBox\t\n";
echo "test1\t";
echo "test2\t";
echo "test2\t";
echo "test2\t";
echo "test2\t";
echo "test2\t";
echo "test2\t";
echo "test2\t";
echo "test2\t";
echo "test2\t";
echo "test2\t";
echo "test2\t";
?>
// 输出Excel文件头,可把user.csv换成你要的文件名
include_once("../includes/global.php");
header("Content-type:application/vnd.ms-excel");
header("Content-Disposition:filename=test.xls");
echo "FirstName\t";
echo "LastName\t";
echo "Prefix\t";
echo "Title\t";
echo "CompanyName\t";
echo "CompanyAddress\t";
echo "Tel\t";
echo "Fax\t";
echo "Email\t";
echo "ColorID\t";
echo "BreakoutSessionsBox\t";
echo "SubscribeBox\t\n";
echo "test1\t";
echo "test2\t";
echo "test2\t";
echo "test2\t";
echo "test2\t";
echo "test2\t";
echo "test2\t";
echo "test2\t";
echo "test2\t";
echo "test2\t";
echo "test2\t";
echo "test2\t";
?>