PHP强制浏览器不打开而是下载文件

<?php

header("Content-Type: application/force-download");
header("Content-Disposition: attachment; filename=".($filename)); 
readfile($file);

评论

暂无评论