用它试试:
header("Content-disposition: filename=aaa.txt");
header("Content-type: application/octetstream");
header("Pragma: no-cache");
header("Expires: 0");====================================
www.chinesehis.com/strry/index.php
header("Content-disposition: filename=aaa.txt");
header("Content-type: application/octetstream");
header("Pragma: no-cache");
header("Expires: 0");====================================
www.chinesehis.com/strry/index.php
还有其它办法吗?
后面加一句echo $a;
放到 51.net 上面,它竟然下载的是download.php这个页面,只是内容为空.这又怎么解决呢?