标签:下载 文件路径 stream 文件下载 oct content ade php name
download(basename($files),$files);//文件路径
function download($fileName,$file){
header("Content-type:application/octet-stream");
header("Content-Disposition:attachment;filename={$fileName}");
header("Accept-ranges:bytes");
header("Accept-length:".filesize($file));
readfile($file);
}
标签:下载 文件路径 stream 文件下载 oct content ade php name
原文地址:http://www.cnblogs.com/globalfy/p/7906678.html