PHP头条
热点:

PHP 强制下载文件代码


复制代码 代码如下:

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

www.phpzy.comtrue/php/33072.htmlTechArticlePHP 强制下载文件代码 复制代码 代码如下: ?php $filename = '1.png'; header("Content-Type: application/force-download"); header('Content-Disposition: attachment; filename="'.$filename.'"'); echo $filename; ?...

相关文章

    暂无相关文章

PHP之友评论

今天推荐