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

  1. <small id='uUuwU'></small><noframes id='uUuwU'>

      <bdo id='uUuwU'></bdo><ul id='uUuwU'></ul>
    <legend id='uUuwU'><style id='uUuwU'><dir id='uUuwU'><q id='uUuwU'></q></dir></style></legend>

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

      使用 Zend 框架 1.7.4 上傳文件

      File Upload using zend framework 1.7.4(使用 Zend 框架 1.7.4 上傳文件)
        <tbody id='QnGhH'></tbody>
      • <tfoot id='QnGhH'></tfoot>

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

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

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

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

                本文介紹了使用 Zend 框架 1.7.4 上傳文件的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我正在嘗試使用 Zend Framework 1.7.4 上傳文件,但沒有成功.我已經閱讀了 Akrabat 的教程,這很有幫助,但是當我在我的項目中使用這些技術時,我無法讓它工作.

                I am trying to upload a file using Zend Framework 1.7.4, but have not been successful. I have read Akrabat's tutorial, which was helpful but when i used those techniques in my project I was not able to get it to work.

                推薦答案

                您發布的鏈接只是一般的 Zend Framework 教程,在 ZF 1.5 之后尚未更新.

                The link you posted is just a general Zend Framework tutorial, and hasn't been updated past ZF 1.5.

                無論如何,一旦您開始使用 Zend,這是您用來接收上傳的代碼示例.進行發布的表單必須具有正確的文件上傳組件.

                Anyway, once you get started with Zend, this is a sample of the code you would use to receive an upload. The form doing the posting must have the correct file upload components.

                //validate file
                //for example, this checks there is exactly 1 file, it is a jpeg and is less than 512KB
                $upload = new Zend_File_Transfer_Adapter_Http();
                $upload->addValidator('Count', false, array('min' =>1, 'max' => 1))
                       ->addValidator('IsImage', false, 'jpeg')
                       ->addValidator('Size', false, array('max' => '512kB'))
                       ->setDestination('/tmp');
                
                if (!$upload->isValid()) 
                {
                    throw new Exception('Bad image data: '.implode(',', $upload->getMessages()));
                }
                
                try {
                        $upload->receive();
                } 
                catch (Zend_File_Transfer_Exception $e) 
                {
                        throw new Exception('Bad image data: '.$e->getMessage());
                }
                
                //then process your file, it's path is found by calling $upload->getFilename()
                

                這篇關于使用 Zend 框架 1.7.4 上傳文件的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                相關文檔推薦

                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 找不到驅動程序)

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

                          <bdo id='89t7p'></bdo><ul id='89t7p'></ul>
                        • <small id='89t7p'></small><noframes id='89t7p'>

                          <legend id='89t7p'><style id='89t7p'><dir id='89t7p'><q id='89t7p'></q></dir></style></legend>
                          主站蜘蛛池模板: 999国产视频 | 国产一区二区三区在线看 | 久久一日本道色综合久久 | 亚洲成人精品 | 精品乱人伦一区二区三区 | 国产精品九九视频 | 国产高清精品一区二区三区 | 精品国产一区二区三区久久久蜜月 | 日韩在线精品视频 | 51ⅴ精品国产91久久久久久 | 91精品久久久久久久久中文字幕 | 欧美日韩中文字幕在线 | 欧美精品乱码久久久久久按摩 | 九九色综合 | 男人天堂99 | 91福利影院 | 久热爱 | 日韩中文字幕在线观看视频 | 国产精品国产成人国产三级 | 成人欧美一区二区三区在线观看 | 九九国产 | 成人综合视频在线 | 区一区二在线观看 | 久久国产精品久久国产精品 | 一区精品国产欧美在线 | 国产成人精品区一区二区不卡 | 伊人免费在线观看高清 | www.日韩系列 | 国产精品久久久久一区二区三区 | 天天操夜夜拍 | 51ⅴ精品国产91久久久久久 | 一区二区在线观看免费视频 | 国产福利91精品 | 国产亚洲成av人片在线观看桃 | 四虎永久免费在线 | 黄片毛片在线观看 | 亚洲每日更新 | 91精品在线看 | 午夜视频网站 | 欧美精品久久久 | 亚洲成av片人久久久 |