建议你error_reporting(E_ALL);看下系统反馈什么信息

解决方案 »

  1.   

    firefox中是没有问题哦 !在ie里直接在页面中打开了!呵呵!!这个好象于服务器没有关系吧?
      

  2.   

    http://blog.csdn.net/kingerq/archive/2004/10/06/126490.aspx
      

  3.   

    header("Content-type:application/txt");
    header("Content-Disposition:filename=111.csv");
    echo "xxxxx";
    echo "xxxxx";这样就能下载
      

  4.   

    正如 aruhan(阿如罕) 所说,改成.csv就可以了,但我要用.txt文件啊,不然用户下来后没法处理,csv就可以,txt就不行,为什么啊!!!!!!!!!!
      

  5.   

    header("Content-type:application/txt");
    header("Content-Disposition: attachment; filename=111.csv");
    echo "xxxxx";
    echo "xxxxx";
      

  6.   

    header("Content-type:application/txt");
    header("Content-Disposition: attachment; filename=111.txt");
    echo "xxxxx";
    echo "xxxxx";
      

  7.   

    header("Content-type:application/txt");
    header("Content-Disposition: attachment; filename=111.txt");
    readfile($serverPath);
    exit;
      

  8.   

    对!是这个
    header("Content-type:application/txt");
    header("Content-Disposition: attachment; filename=111.txt");
    echo "xxxxx";
    echo "xxxxx";