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

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

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

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

      <tfoot id='XhKiw'></tfoot>

        是否有必要關閉 PDO 連接

        Is it necessary to close PDO connections(是否有必要關閉 PDO 連接)

            <tbody id='abVPx'></tbody>

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

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

                • 本文介紹了是否有必要關閉 PDO 連接的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我注意到 PDO 沒有關閉功能.我應該關閉連接還是 PDO 不需要?

                  解決方案

                  成功連接到數據庫后,PDO 類的實例將返回到您的腳本.該連接在該 PDO 對象的生命周期內保持活動狀態.要關閉連接,您需要通過確保刪除對它的所有剩余引用來銷毀該對象——您可以通過將 NULL 分配給保存該對象的變量來完成此操作.如果您沒有明確這樣做,PHP 將在您的腳本結束時自動關閉連接.

                  http://php.net/manual/en/pdo.connections.php

                  所以答案是否定的,除非出于某種原因需要在腳本執行期間顯式關閉連接,否則您不需要做任何事情,在這種情況下,只需將 PDO 對象設置為 null.

                  I noticed there is no close function for PDO. Should I close the connection or is it unnecessary for PDO?

                  解決方案

                  Upon successful connection to the database, an instance of the PDO class is returned to your script. The connection remains active for the lifetime of that PDO object. To close the connection, you need to destroy the object by ensuring that all remaining references to it are deleted--you do this by assigning NULL to the variable that holds the object. If you don't do this explicitly, PHP will automatically close the connection when your script ends.

                  http://php.net/manual/en/pdo.connections.php

                  So the answer is no, you don't need to do anything unless you need to explicitly close the connection during the script execution for whatever reason, in which case just set your PDO object to null.

                  這篇關于是否有必要關閉 PDO 連接的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 找不到驅動程序)
                  <tfoot id='Dw2V3'></tfoot>
                    <bdo id='Dw2V3'></bdo><ul id='Dw2V3'></ul>
                        <tbody id='Dw2V3'></tbody>

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

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

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

                          1. 主站蜘蛛池模板: 国产精品欧美一区二区 | 国产91丝袜在线18 | 一区二区三区四区电影 | av一区二区三区 | 一级免费看片 | 国产h在线 | 亚洲精品福利视频 | 国产美女精品视频 | 在线免费观看黄网 | 国产成人综合久久 | 天天弄 | 欧美日韩亚洲视频 | av色在线| 亚洲精品久久久一区二区三区 | 久国久产久精永久网页 | 老司机午夜性大片 | 国产成人av电影 | 亚洲一区二区在线 | 天天综合国产 | 亚洲影音 | 精品美女在线观看视频在线观看 | 精品成人av | 成人黄色电影免费 | 成人在线不卡 | 欧美一区二区网站 | 色精品| 国内精品一区二区三区 | 国产精品久久久久国产a级 欧美日韩国产免费 | 日韩精品在线观看视频 | jlzzjlzz欧美大全 | 日本三级电影免费观看 | 久久一区二区三区四区 | 麻豆久久久 | 久久综合狠狠综合久久综合88 | 久久99精品久久久久久 | 日韩精品在线一区 | 日本视频在线播放 | 国产精品1区2区3区 中文字幕一区二区三区四区 | 亚洲午夜av久久乱码 | 欧美日韩国产三级 | 日本不卡免费新一二三区 |