PHP 强制下载文件代码
2026-01-17 15:29:14 作者:用户投稿
复制代码 代码如下:
<?php
$filename = '1.png';
header("Content-Type: application/force-download");
header('Content-Disposition: attachment; filename="'.$filename.'"');
echo $filename;
?>
<?php
$filename = '1.png';
header("Content-Type: application/force-download");
header('Content-Disposition: attachment; filename="'.$filename.'"');
echo $filename;
?>
联络方式:
4008905355
邮箱:9196886@qq.com
Q Q:9196886
微信二维码
