时间:2021-07-01 10:21:17 帮助过:12人阅读
$filename = '1.png';
header("Content-Type: application/force-download");
header('Content-Disposition: attachment; filename="'.$filename.'"');
echo $filename;
?>
http://www.bkjia.com/PHPjc/322500.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/322500.htmlTechArticle 代码如下:
?php $filename = '1.png'; header("Content-Type: application/force-download"); header('Content-Disposition: attachment; filename="'.$filename.'"'); echo $...