用它试试:
header("Content-disposition: filename=aaa.txt");
header("Content-type: application/octetstream");
header("Pragma: no-cache");
header("Expires: 0");====================================
www.chinesehis.com/strry/index.php

解决方案 »

  1.   

    bombshell(水中鱼) :试过了,不行,只显示一个空的页面.
    还有其它办法吗?
      

  2.   

    前面加一句 $a=fread($fp=fopen("aaa.txt","r"),filesize("aaa.txt"));fclose($fp);
    后面加一句echo $a;
      

  3.   

    imjoksky(joksky) :是了,是了,试出来了!!真太谢谢你了!!!还想问一下,这是什么原理呢??
      

  4.   

    又有个问题了:
    放到 51.net 上面,它竟然下载的是download.php这个页面,只是内容为空.这又怎么解决呢?