久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <tfoot id='oYwzs'></tfoot>
  • <small id='oYwzs'></small><noframes id='oYwzs'>

      <bdo id='oYwzs'></bdo><ul id='oYwzs'></ul>

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

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

        如何在 PHP 中自動開始下載?

        How to Automatically Start a Download in PHP?(如何在 PHP 中自動開始下載?)
        <i id='6CszU'><tr id='6CszU'><dt id='6CszU'><q id='6CszU'><span id='6CszU'><b id='6CszU'><form id='6CszU'><ins id='6CszU'></ins><ul id='6CszU'></ul><sub id='6CszU'></sub></form><legend id='6CszU'></legend><bdo id='6CszU'><pre id='6CszU'><center id='6CszU'></center></pre></bdo></b><th id='6CszU'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='6CszU'><tfoot id='6CszU'></tfoot><dl id='6CszU'><fieldset id='6CszU'></fieldset></dl></div>
          <bdo id='6CszU'></bdo><ul id='6CszU'></ul>
              <tbody id='6CszU'></tbody>
          1. <small id='6CszU'></small><noframes id='6CszU'>

                <legend id='6CszU'><style id='6CszU'><dir id='6CszU'><q id='6CszU'></q></dir></style></legend>

                  <tfoot id='6CszU'></tfoot>
                  本文介紹了如何在 PHP 中自動開始下載?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  需要在 PHP 中添加什么代碼才能在訪問鏈接時自動讓瀏覽器將文件下載到本地機(jī)器?

                  What code do you need to add in PHP to automatically have the browser download a file to the local machine when a link is visited?

                  我特別想到了類似于下載站點(diǎn)的功能,一旦您單擊軟件名稱,就會提示用戶將文件保存到磁盤?

                  I am specifically thinking of functionality similar to that of download sites that prompt the user to save a file to disk once you click on the name of the software?

                  推薦答案

                  在輸出文件前發(fā)送以下標(biāo)題:

                  Send the following headers before outputting the file:

                  header("Content-Disposition: attachment; filename="" . basename($File) . """);
                  header("Content-Type: application/octet-stream");
                  header("Content-Length: " . filesize($File));
                  header("Connection: close");
                  

                  @grom:關(guān)于application/octet-stream"MIME 類型很有趣.我不知道,一直只使用應(yīng)用程序/強(qiáng)制下載":)

                  @grom: Interesting about the 'application/octet-stream' MIME type. I wasn't aware of that, have always just used 'application/force-download' :)

                  這篇關(guān)于如何在 PHP 中自動開始下載?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  Deadlock exception code for PHP, MySQL PDOException?(PHP、MySQL PDOException 的死鎖異常代碼?)
                  PHP PDO MySQL scrollable cursor doesn#39;t work(PHP PDO MySQL 可滾動游標(biāo)不起作用)
                  PHP PDO ODBC connection(PHP PDO ODBC 連接)
                  Using PDO::FETCH_CLASS with Magic Methods(使用 PDO::FETCH_CLASS 和魔術(shù)方法)
                  php pdo get only one value from mysql; value that equals to variable(php pdo 只從 mysql 獲取一個值;等于變量的值)
                  MSSQL PDO could not find driver(MSSQL PDO 找不到驅(qū)動程序)

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

                        <bdo id='Zl3DI'></bdo><ul id='Zl3DI'></ul>
                        <i id='Zl3DI'><tr id='Zl3DI'><dt id='Zl3DI'><q id='Zl3DI'><span id='Zl3DI'><b id='Zl3DI'><form id='Zl3DI'><ins id='Zl3DI'></ins><ul id='Zl3DI'></ul><sub id='Zl3DI'></sub></form><legend id='Zl3DI'></legend><bdo id='Zl3DI'><pre id='Zl3DI'><center id='Zl3DI'></center></pre></bdo></b><th id='Zl3DI'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Zl3DI'><tfoot id='Zl3DI'></tfoot><dl id='Zl3DI'><fieldset id='Zl3DI'></fieldset></dl></div>
                          <tbody id='Zl3DI'></tbody>

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

                        • <tfoot id='Zl3DI'></tfoot>

                          1. 主站蜘蛛池模板: 国产精品视频一二三区 | 操久久久 | 国产日韩一区二区 | 欧美在线激情 | 国产精品欧美一区二区 | 午夜影院在线观看 | 久久高清| 亚洲一区二区精品视频 | av在线成人 | 欧美1区2区 | 成人精品一区二区三区四区 | 国产精品永久免费观看 | 成在线人视频免费视频 | 韩国av网站在线观看 | 在线中文字幕视频 | 色网在线看 | a级网站| 中文精品视频 | 色婷婷久久久久swag精品 | 国产精品日韩欧美一区二区 | 久久激情五月丁香伊人 | 97精品超碰一区二区三区 | 91麻豆精品国产91久久久更新资源速度超快 | 欧美一级淫片免费视频黄 | 人人干人人舔 | 亚洲午夜三级 | 国产精品久久久久久238 | 欧美日韩国产在线观看 | 亚洲大片一区 | h片在线看| 免费在线h视频 | 国产亚洲人成a在线v网站 | 精品免费国产一区二区三区 | 国产我和子的乱视频网站 | 国产精品视频一 | 午夜精品在线 | 第一福利社区1024 | 在线观看国产91 | 九九热久久免费视频 | 免费h在线 | 成人在线视频一区 |