时间:2021-07-01 10:21:17 帮助过:4人阅读
$url = isset($_GET['url'])? $_GET['url'] : '';
if($url){
$content = file_get_contents($url);
if($content){
header('cache-control:public');
header('content-type:application/octet-stream');
header('content-disposition:attachment; filename='.basename($url));
echo $content;
}
}