网站首页
高清电影
无损音乐
游戏攻略
电脑教程
破解资源
站长资源
软件下载
PHP 强制下载文件代码
(编辑:jimmy 日期: 2024/9/25 浏览:
2
)
复制代码
代码如下:
<?php
$filename = '1.png';
header("Content-Type: application/force-download");
header('Content-Disposition: attachment; filename="'.$filename.'"');
echo $filename;
?>
上一篇:
php正则过滤html标签、空格、换行符的代码(附说明)
下一篇:
PHP 分页类代码(简单好用型)第1/2页
首页
音乐
电影
资源