易网时代-编程资源站
Welcome
首页
/
网页编程
/
PHP
/
PHP 强制下载文件代码
复制代码
代码如下:
<?php
$filename = "1.png";
header("Content-Type: application/force-download");
header("Content-Disposition: attachment; filename="".$filename.""");
echo $filename;
?>
版权所有©石家庄振强科技有限公司2024
冀ICP备08103738号-5
网站地图