PHP导出一个txt文本文件

  作者:会飞的

<?phpHeader( "Content-type: application/octet-stream ");Header( "Accept-Ranges: bytes ");header( "Content-

<?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 "信鸽网
";

echo "信鸽网(xinge360.com)是企业寻求电子商务网络贸易信息的首选行业门户
";

 

?>