$url ="http://localhost:89/Downloads/".$txturlfie."/".$file;
Header("Location:$url");
以前这样是可以的,但是现在没用了。请问还有别的什么方式可以弹出下载框吗?
header为什么不能用了也不清楚
phpfileheader

解决方案 »

  1.   


     echo'<td width="480">';
    echo '<a id ="fontsize" href="DownClick.php?file='.$fileName.'&txtfileurl='.$fileurl.'">'.$fileName.'</a>';
    //echo '<a id ="fontsize" href="http://localhost:89/Downloads/'.$fileurl.'/'.$fileName.'">'.$fileName.'</a>';
                                echo'</td>';
      

  2.   

    加两个header:
             header("Content-type: application/octet-stream");
             header("Content-Type: application/force-download");
      

  3.   

    你应该在前一个页面做文章!target="_blank"
      

  4.   


    $url ="http://localhost:89/Downloads/".$txturlfie."/".$file;
    Header("Location:$url");

    echo'<td width="480">';
    echo '<a id ="fontsize" href="DownClick.php?file='.$fileName.'&txtfileurl='.$fileurl.'">'.$fileName.'</a>';
    //echo '<a id ="fontsize" href="http://localhost:89/Downloads/'.$fileurl.'/'.$fileName.'">'.$fileName.'</a>';
                                echo'</td>';
    实际上都是DownClick.php里面的内容
      

  5.   

    你要看你的 DownClick.php 是怎么写的