快速搞定文件下载头部输出
header(“Content-type: application/x-download”);
header(“Content-Disposition: attachment; filename=$file_download_name;”);
header(“Accept-Ranges: bytes”);
header(“Content-Length: $download_size”);
http://www.gaodaima.com/46813.html安全下载与断点续传_php
echo ‘xxx’
用header输出ftp下载方式,并且支持断点续传
一个例子:
header(‘Pragma: public’);
header(‘Cache-Control: private’);
header(‘Cache-Control: no-cache, must-revalidate’);
header(‘Accept-Ranges: bytes’);
header(‘Connection: close’);
header(“Content-Type: audio/mpeg”);
header(“Location:ftp://download:[email protected]/神话.rmvb”);
欢迎大家阅读《安全下载与断点续传_php》,跪求各位点评,若觉得好的话请收藏本文,by 搞代码