myliuwu
新手上路

UID 124349
精华
0
积分 5
帖子 3
金钱 5 喜悦币
威望 0
人脉 0
阅读权限 10
注册 2008-5-20
状态 离线
|
PHP 生成excel文件,起用session 怎么就不能生成了?
header("Content-type:application/vnd.ms-excel");
header("Content-Disposition:filename=test.xls");
header("Pragma: no-cache");
header("Expires: 0");
session_start();
echo "aid\tMedia\tChannel\tAd Name\tEvent\tSize\tType\tBundle\tFree\tDate\tCode\t\n";
这样写 有要下载的提示框,但是不是xls文件....去掉session_start();就可以了
我是咱村的新人...望大家帮忙
|
|