PHP强制浏览器不打开而是下载文件
文章目录
<?php
header("Content-Type: application/force-download");
header("Content-Disposition: attachment; filename=".($filename));
readfile($file);
<?php
header("Content-Type: application/force-download");
header("Content-Disposition: attachment; filename=".($filename));
readfile($file);
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论