#12002/11/15 15:34:51
我要做个文件下载到本地的程序,网上有个教程是这么写的。但我看不懂这部分:
Header("Content-type: application/octet-stream");
Header("Accept-Ranges: bytes");
Header("Accept-Length: ".filesize($file_dir.$file_name));
Header("Content-Disposition: attachment; filename=".$file_name);
谁能帮忙解释一下,上面程序都用来做些什么的?
还有,我执行这段程序后,浏览器报错:
Warning: Cannot add header information - headers already sent by (output started at /new/exportconfiguration.php:6)
怎么办?