一定要让下载者看见文件名??是必须让连接也地址也是中文名吗?

解决方案 »

  1.   

    请参考header函数看一看.下面是header的例子,你看一下应该可以解决问题了
    <?php
    // We'll be outputting a PDF
    header('Content-type: application/pdf');// It will be called downloaded.pdf
    header('Content-Disposition: attachment; filename="downloaded.pdf"');// The PDF source is in original.pdf
    readfile('original.pdf');
    ?>