阅读背景:

PHP创建Excel电子表格,然后通过电子邮件将其作为附件发送

来源:互联网 

I'm using the following code:

我正在使用以下代码:

<?php
$data = $_REQUEST['datatodisplay'];
header("Content-Type: application/vnd.ms-excel");
header("Content-Disposition: attachment; filename=Data.xls");
header("Pragma: no-cache");
header("Expires: 0");

echo $data;

?>
<?



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: