//下载,添加响应头信息
header('Content-type:application/octet-stream');
header('Content-Disposition:attachment;filename="'.basename($file).'"');
header('Content-Length:'.filesize($file));
readfile($file);

相关文章:

  • 2021-05-21
  • 2021-09-29
  • 2021-08-31
  • 2021-09-17
  • 2021-11-04
  • 2021-11-04
  • 2021-07-01
猜你喜欢
  • 2021-11-02
  • 2021-07-03
  • 2021-05-13
  • 2021-11-04
  • 2021-08-24
  • 2021-09-19
  • 2021-09-19
  • 2021-09-19
相关资源
相似解决方案