<legend id='aXdwr'><style id='aXdwr'><dir id='aXdwr'><q id='aXdwr'></q></dir></style></legend>

    <small id='aXdwr'></small><noframes id='aXdwr'>

      <tfoot id='aXdwr'></tfoot>
    1. <i id='aXdwr'><tr id='aXdwr'><dt id='aXdwr'><q id='aXdwr'><span id='aXdwr'><b id='aXdwr'><form id='aXdwr'><ins id='aXdwr'></ins><ul id='aXdwr'></ul><sub id='aXdwr'></sub></form><legend id='aXdwr'></legend><bdo id='aXdwr'><pre id='aXdwr'><center id='aXdwr'></center></pre></bdo></b><th id='aXdwr'></th></span></q></dt></tr></i><div id='aXdwr'><tfoot id='aXdwr'></tfoot><dl id='aXdwr'><fieldset id='aXdwr'></fieldset></dl></div>

      • <bdo id='aXdwr'></bdo><ul id='aXdwr'></ul>

      使用 PHP 打开下载对话框

      时间:2023-08-20

          <bdo id='1T9QX'></bdo><ul id='1T9QX'></ul>

            <tfoot id='1T9QX'></tfoot>
            1. <legend id='1T9QX'><style id='1T9QX'><dir id='1T9QX'><q id='1T9QX'></q></dir></style></legend>

                <tbody id='1T9QX'></tbody>
              <i id='1T9QX'><tr id='1T9QX'><dt id='1T9QX'><q id='1T9QX'><span id='1T9QX'><b id='1T9QX'><form id='1T9QX'><ins id='1T9QX'></ins><ul id='1T9QX'></ul><sub id='1T9QX'></sub></form><legend id='1T9QX'></legend><bdo id='1T9QX'><pre id='1T9QX'><center id='1T9QX'></center></pre></bdo></b><th id='1T9QX'></th></span></q></dt></tr></i><div id='1T9QX'><tfoot id='1T9QX'></tfoot><dl id='1T9QX'><fieldset id='1T9QX'></fieldset></dl></div>
            2. <small id='1T9QX'></small><noframes id='1T9QX'>

                本文介绍了使用 PHP 打开下载对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我正在尝试制作一个在线 kickstart 配置文件创建器.在服务器上创建文件后,如何弹出下载对话框以便用户下载?

                I am trying to make an online kickstart config file creator. After the file is created on the server how do I get the download dialog to pop up so the user can download it?

                推荐答案

                Content-Disposition header..

                Content-Disposition header..

                // 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');
                

                http://au2.php.net/manual/en/function.头文件

                这篇关于使用 PHP 打开下载对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:允许用户在 webroot 之外下载文件 下一篇:如何从 PHP 中的 MySQL 数据库下载基于 blob 的文件?

                相关文章

                1. <tfoot id='LDAi6'></tfoot>

                  <small id='LDAi6'></small><noframes id='LDAi6'>

                  <legend id='LDAi6'><style id='LDAi6'><dir id='LDAi6'><q id='LDAi6'></q></dir></style></legend>

                    <i id='LDAi6'><tr id='LDAi6'><dt id='LDAi6'><q id='LDAi6'><span id='LDAi6'><b id='LDAi6'><form id='LDAi6'><ins id='LDAi6'></ins><ul id='LDAi6'></ul><sub id='LDAi6'></sub></form><legend id='LDAi6'></legend><bdo id='LDAi6'><pre id='LDAi6'><center id='LDAi6'></center></pre></bdo></b><th id='LDAi6'></th></span></q></dt></tr></i><div id='LDAi6'><tfoot id='LDAi6'></tfoot><dl id='LDAi6'><fieldset id='LDAi6'></fieldset></dl></div>
                    • <bdo id='LDAi6'></bdo><ul id='LDAi6'></ul>