PHP强制下载文件代码
代码如下:
$filename = '1.png';
header("Content-Type: application/force-download");
header('Content-Disposition: attachment; filename="'.$filename.'"');
echo $filename;
?>
/php/11113.htmlwww.phpzy.comtrue/php/11113.htmlTechArticlePHP强制下载文件代码 代码如下: $filename = '1.png'; header("Content-Type: application/force-download"); header('Content-Disposition: attachment; filename="'.$filename.'"'); echo $filename; ?>...
PHP之友评论