您好,欢迎访问一九零五行业门户网

(高分)为啥这段代码不能实现文件下载

(高分)为什么这段代码不能实现文件下载
高分悬赏:
为什么我这段代码不能实现文件下载,在linux和windows下我都试过了。在windows下运行到ob_start();程序就没运行下去了。
分享到: 更多
------解决方案--------------------
download($path.$file,$file);
换成
download($path.'/'.$file,$file);
------解决方案--------------------
header('content-disposition: attachment; filename='.urlencode($file).'');
其它类似信息

推荐信息