请知悉:本文最近一次更新为 9年 前,文中内容可能已经过时。

完整的文件下载或导出头信息。
header('Pragma: public');
header('Last-Modified: '.gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: pre-check=0, post-check=0, max-age=0');
header('Content-Transfer-Encoding: binary');
header('Content-Encoding: none');
header('Content-type: '.$filetype);//文件类型
header('Content-Disposition: attachment; filename=”'.$filename.'”');//文件名称
header('Content-length: '.$filesize);//文件大小

内容摘自:https://blog.csdn.net/fafa211/article/details/5801371


如您从本文得到了有价值的信息或帮助,请考虑扫描文末二维码捐赠和鼓励。

尊重他人劳动成果。转载请务必附上原文链接,我将感激不尽。


与《PHP-防盗链输出下载文件header控制-计算下载进度》相关的博文:


发布时间 01/09/2015 10:19:01栏目 Software.标签 .

留言

avatar
😀
😀😁😂😅😭🤭😋😘🤔😰😱🤪💪👍👎🤝🌹👌