<?php 
Header( "Content-type:   application/octet-stream "); 
Header( "Accept-Ranges:   bytes "); 
header( "Content-Disposition:   attachment;   filename=test.txt "); 
header( "Expires:   0 "); 
header( "Cache-Control:   must-revalidate,   post-check=0,   pre-check=0 "); 
header( "Pragma:   public "); 
echo "测试/r/n";
echo "测试/r/n";

echo 输入的内容为文本文件的内容。
?>

相关文章:

  • 2022-02-26
  • 2021-06-01
  • 2021-12-28
  • 2021-06-28
  • 2022-12-23
  • 2022-01-02
  • 2022-12-23
  • 2021-11-30
猜你喜欢
  • 2021-12-04
  • 2021-11-23
  • 2022-12-23
  • 2022-02-27
  • 2021-10-27
  • 2022-12-23
相关资源
相似解决方案