时间:2021-07-01 10:21:17 帮助过:36人阅读
elseif($_REQUEST['act'] == 'exec'){ $user = exec_user(); $filename = ecs_iconv(EC_CHARSET, 'GB2312', '用户信息'); header("Content-type: application/vnd.ms-excel; charset=utf-8"); header("Content-Disposition: attachment; filename=$filename.xls"); $data="会员\t省\t市\t区\t收货地址\t分区\t线路\t业务员\t业务经理\n"; foreach($user as $item) { $data.="$item[user_name]\t"; $data.="$item[province]\t"; $data.="$item[city]\t"; $data.="$item[district]\t"; $data.="$item[address]\t"; $data.="$item[dist_name]\t"; $data.="$item[thread_name]\t"; $data.="$item[saleman]\t"; $data.="$item[manage]\n"; } echo ecs_iconv(EC_CHARSET, 'GB2312', $data) . "\t"; exit;}
页面有无卡死?
给php分配的内存够不够?
打开xls文件那200行数据正常吗
找到问题了,是特殊字符造成的,谢谢