怎么简单的问题,被你写得这么复杂?
$file_dir = trim($file_dir);//去掉路径中多余的空格,用trim...header("Content-type: text/plain");
header("Accept-Ranges: bytes");
header("Accept-Length: $file_size");
header("Content-Disposition: attachment; filename=".$file_name); readfile($file_path);
return true;
$file_dir = trim($file_dir);//去掉路径中多余的空格,用trim...header("Content-type: text/plain");
header("Accept-Ranges: bytes");
header("Accept-Length: $file_size");
header("Content-Disposition: attachment; filename=".$file_name); readfile($file_path);
return true;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货