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