可以看看:http://www.openphp.cn
http://www.openphp.cn/index.php/download/3/index.html
下载的文件指定为某一文件名称.\
按照你的要求一般是不大可能..或许根本就不可能.

解决方案 »

  1.   

    可以的,header("Content-Disposition: attachment;filename=" .$name(your file name));
      

  2.   

    $string="测试";
    echo base64_encode($string);
    //print   suLK1A==
    echo base64_decode("suLK1A==");
    //print 测试
      

  3.   

    PHP中下载是什么原理呀?我看大家都是写到读文件就不往下写了,是自己弹出窗口保存吗?为什么我没有弹出窗口呢?是什么地方要做特殊的设置吗?