做下载系统时的一些HTML文件头

如果不能随心制定下载方式的话,查查这些参数
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename="'.$f_name.'"');
header('Content-Length: ' . filesize($f_full));
另外,CI里有download helper,能帮着做一些事

原文地址:https://www.cnblogs.com/johnsonshu/p/2568491.html