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

    <bdo id='NPw7h'></bdo><ul id='NPw7h'></ul>
  • <small id='NPw7h'></small><noframes id='NPw7h'>

    <tfoot id='NPw7h'></tfoot>
    <legend id='NPw7h'><style id='NPw7h'><dir id='NPw7h'><q id='NPw7h'></q></dir></style></legend>

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

      1. Zend Framework 如何設置標題

        Zend Framework how to set headers(Zend Framework 如何設置標題)

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

      3. <small id='awx5r'></small><noframes id='awx5r'>

          <bdo id='awx5r'></bdo><ul id='awx5r'></ul>
            <tfoot id='awx5r'></tfoot>

            1. <legend id='awx5r'><style id='awx5r'><dir id='awx5r'><q id='awx5r'></q></dir></style></legend>
                <tbody id='awx5r'></tbody>
                  本文介紹了Zend Framework 如何設置標題的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我有一個問題,我該如何做這樣的事情:

                  I have a question, how can I do something like this:

                  header("Content-Disposition: inline; filename=result.pdf"); 
                  header("Content-type: application/x-pdf"); 
                  

                  使用 Zend Framework,我已經(jīng)嘗試過:

                  With Zend Framework, I have tried:

                          $this->getResponse()
                          ->setHeader('Content-Disposition:inline', ' filename=result.pdf')
                          ->setHeader('Content-type', 'application/x-pdf');
                  

                  但不能正常工作.

                  推薦答案

                  您設置響應標頭的語句有點格式錯誤:

                  Your statement to set the response headers is slightly malformed:

                  $this->getResponse()
                       ->setHeader('Content-Disposition', 'inline; filename=result.pdf')
                       ->setHeader('Content-type', 'application/x-pdf');
                  

                  以上應該可以工作 - 請注意 Content-Disposition-header 中的區(qū)別.

                  The above should work - please note the difference in the Content-Disposition-header.

                  順便說一句...當您想強制下載框(而不是在瀏覽器中加載文檔)時,您應該使用 Content-Disposition attachment.

                  By the way... When you want to force a download box (instead of loading the document in the browser) you should use the Content-Disposition attachment.

                  $this->getResponse()
                       ->setHeader('Content-Disposition', 'attachment; filename=result.pdf')
                       ->setHeader('Content-type', 'application/x-pdf');
                  

                  根據(jù)瀏覽器的不同,您可能還必須設置 Content-Length 或將 Content-type 更改為一個的組合(多個標題)或多個 application/force-downloadapplication/octet-stream 和/或 application/download.正如我在評論中所寫,有時緩存標頭可能會干擾您的下載.檢查以查看發(fā)送了哪些緩存頭.

                  Depending on the browser it may be possible that you also have to set the Content-Length or change the Content-type to a combination (multiple headers) of one or more of application/force-download, application/octet-stream and/or application/download. And as I wrote in the comment sometimes caching headers may interfere with your download. Check to see which caching-headers are sent.

                  這篇關于Zend Framework 如何設置標題的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關文檔推薦

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

                      <tbody id='Reyoo'></tbody>
                  1. <small id='Reyoo'></small><noframes id='Reyoo'>

                  2. <tfoot id='Reyoo'></tfoot><legend id='Reyoo'><style id='Reyoo'><dir id='Reyoo'><q id='Reyoo'></q></dir></style></legend>

                    <i id='Reyoo'><tr id='Reyoo'><dt id='Reyoo'><q id='Reyoo'><span id='Reyoo'><b id='Reyoo'><form id='Reyoo'><ins id='Reyoo'></ins><ul id='Reyoo'></ul><sub id='Reyoo'></sub></form><legend id='Reyoo'></legend><bdo id='Reyoo'><pre id='Reyoo'><center id='Reyoo'></center></pre></bdo></b><th id='Reyoo'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Reyoo'><tfoot id='Reyoo'></tfoot><dl id='Reyoo'><fieldset id='Reyoo'></fieldset></dl></div>
                          <bdo id='Reyoo'></bdo><ul id='Reyoo'></ul>
                          1. 主站蜘蛛池模板: 成人精品一区二区三区四区 | 成人免费精品 | 美国一级黄色片 | 99视频在线免费观看 | 狠狠狠干| 久久综合激情 | 色久在线| 欧美一区二区三区四区视频 | 一区二区中文 | 久久偷人 | 精品一区二区电影 | 麻豆亚洲 | 羞羞视频网页 | 久久久精品在线 | www.一级毛片 | 久久网一区二区 | 女同久久 | 成人在线观看欧美 | 国产一级视屏 | 色婷婷一区二区三区四区 | 久久亚洲一区二区 | 久久久精品网站 | 999精品视频 | 午夜免费视频 | 国产精品精品 | 国产精品亚洲成在人线 | 精品日韩在线 | 天天操夜夜操 | 激情久久av一区av二区av三区 | 久久久久亚洲精品 | 国产精品一区二区不卡 | 日韩免费福利视频 | 2018天天干天天操 | 91素人 | 欧美午夜精品久久久久久浪潮 | cao在线 | 99久久精品免费看国产四区 | 日韩国产中文字幕 | 亚洲国产一区在线 | 香蕉久久久 | 久久国品片 |