PHP 强制下载文件代码
2018-09-07 22:12
阅读:352
复制代码 代码如下:
<?php
$filename = 1.png;
header(Content-Type: application/force-download);
header(Content-Disposition: attachment; filename=.$filename.);
echo $filename;
?>
评论
亲,登录后才可以留言!
2018-09-07 22:12
复制代码 代码如下:
<?php
$filename = 1.png;
header(Content-Type: application/force-download);
header(Content-Disposition: attachment; filename=.$filename.);
echo $filename;
?>