您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

PHPExcel文件导出出现找不到该文件,高手

2025/5/10 7:23:11发布29次查看
phpexcel文件导出出现找不到该文件,求救高手!
环境:freebsd服务器,php+mysql
问题:做了一个excel导出功能,在windows本地与linux测试环境都没有问题,在线上freebsd出现找不到该文件。
php code $file_name = isset($_get['exam_caption']) && !empty($_get['exam_caption']) ? $_get['exam_caption'] : time().mt_rand(1000, 9999); $outputfilename = iconv ( 'utf-8', 'gb2312', $file_name . '.xlsx' ); header ( 'pragma:public' ); header ( 'expires:0' ); header ( 'cache-control:must-revalidate,post-check=0,pre-check=0' ); header ( 'content-type:application/force-download' ); header ( 'content-type:application/vnd.ms-excel' ); header ( 'content-type:application/octet-stream' ); header ( 'content-type:application/download' ); header ( 'content-disposition:attachment;filename=' . $outputfilename ); header ( 'content-transfer-encoding:binary' ); $objwriter->save ( 'php://output' );
求教高手!!!!
------解决方案--------------------
你把路劲打印出来看看呗!若相对路径不行就换绝对路径啊!
------解决方案--------------------
没有log,怎么调呀
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product