做下载系统时的一些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,能帮着做一些事

posted @ 2012-06-28 17:49  johnsonshu  阅读(212)  评论(0编辑  收藏  举报