$pathtofile="filepool/12345678";没有指定文件名吧

解决方案 »

  1.   

    服务器也是我自己的。
    这个问题已经解决了。
    参见以下代码:function downit($ptf,$orgname) {    header("Pragma: public");
        header("Expires: 0");
        header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); 
        header("Content-Type: application/force-download");
        header("Content-Type: application/octet-stream");
        header("Content-Type: application/download");
        header("Content-Disposition: attachment; filename=$orgname;");
        header("Content-Transfer-Encoding: binary");
        header("Content-Length: ".filesize($ptf));    readfile($ptf); 
        exit(); }