作者:拍友2502876287 | 来源:互联网 | 2018-07-17 05:24
ec(2);header("Content-Type:$mime");header("Content-Disposition:attachment;filename"$file"");header("Content-Length:".filesize($filename));if(strstr
header("Content-Type: $mime");
header("Content-Disposition: attachment; filename="$file"");
header("Content-Length: ".filesize($filename));
if(strstr($mime, "text")){
$file_handle = @fopen("$filename","r");
}else{
$file_handle = @fopen("$filename","rb");
}
php 实现文本文件下载