输入banner图图片脚本导航/分类

PHP强制下载文件示例代码

  1. //php强制下载文件
  2. $filename = '1.png';
  3. header("Content-Type: application/force-download"); //添加强制下载头信息
  4. header('Content-Disposition: attachment; filename="'.$filename.'"');
  5. echo $filename;
  6. ?>