导航首页 »  技术教程 »  PHP 强制下载文件代码
PHP 强制下载文件代码 1065 2023-12-09   


<?php
$filename = '1.png';
header("Content-Type: application/force-download");
header('Content-Disposition: attachment; filename="'.$filename.'"');
echo $filename;
?>


文章评论 (0条)
发表评论
暂无评论,快来抢沙发吧~