环境: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,怎么调呀
