pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

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

  • <i id='iNMIs'><tr id='iNMIs'><dt id='iNMIs'><q id='iNMIs'><span id='iNMIs'><b id='iNMIs'><form id='iNMIs'><ins id='iNMIs'></ins><ul id='iNMIs'></ul><sub id='iNMIs'></sub></form><legend id='iNMIs'></legend><bdo id='iNMIs'><pre id='iNMIs'><center id='iNMIs'></center></pre></bdo></b><th id='iNMIs'></th></span></q></dt></tr></i><div class="6mwuowg" id='iNMIs'><tfoot id='iNMIs'></tfoot><dl id='iNMIs'><fieldset id='iNMIs'></fieldset></dl></div>
    1. <small id='iNMIs'></small><noframes id='iNMIs'>

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

        PHP 5.5.x 中已棄用的 MySQL 擴展

        Deprecated MySQL extension in PHP 5.5.x(PHP 5.5.x 中已棄用的 MySQL 擴展)
          <bdo id='BxDLx'></bdo><ul id='BxDLx'></ul>
              <tbody id='BxDLx'></tbody>
                  <i id='BxDLx'><tr id='BxDLx'><dt id='BxDLx'><q id='BxDLx'><span id='BxDLx'><b id='BxDLx'><form id='BxDLx'><ins id='BxDLx'></ins><ul id='BxDLx'></ul><sub id='BxDLx'></sub></form><legend id='BxDLx'></legend><bdo id='BxDLx'><pre id='BxDLx'><center id='BxDLx'></center></pre></bdo></b><th id='BxDLx'></th></span></q></dt></tr></i><div class="om0omi0" id='BxDLx'><tfoot id='BxDLx'></tfoot><dl id='BxDLx'><fieldset id='BxDLx'></fieldset></dl></div>

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

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

                  <tfoot id='BxDLx'></tfoot>
                1. 本文介紹了PHP 5.5.x 中已棄用的 MySQL 擴展的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  根據 PHP 手冊,以及自 PHP 5.5 起互聯網上的大量資源.x 不推薦使用整個原始 MySQL 擴展.我有一個非常強大的 Web 應用程序,我的協會中的很多學生都在使用它,但是當我對 PHP 一無所知時我開始研究它,而且我從來沒有費心將 MySQL_* 擴展名更改為 MySQLi_* 或 PDO_MySQL.

                  According to the PHP manual, and a lot of sources on the internet as of PHP 5.5.x the whole original MySQL extension is deprecated. I have a really robust web application that is used by a lot of students in my association, but I started working on it when I didn't know a lot of PHP and I never bothered with changing the MySQL_* extension with MySQLi_* or PDO_MySQL.

                  Web 應用程序已完成,所有系統都在運行,并且可能不會通過新功能進行增強,所以我的問題是:我是否應該花一些時間更改所有 mysql_* 調用并使用 mysqli_* 調用切換它們.如果我將所有內容都保留在已棄用的 mysql_* 擴展名中,我的應用程序是否會在 Internet 上無法訪問?

                  The web app is finished and all systems are running and will probably not be enhanced with new features, so my question is: Should I take some time and change all the mysql_* calls and switch them with mysqli_* calls. Is my application ever going to become inaccessible on the internet if I leave everything with the deprecated mysql_* extension?

                  推薦答案

                  如果我將所有內容都保留在已棄用的 mysql_* 擴展名中,我的應用程序是否會在 Internet 上無法訪問?

                  Is my application ever going to become inaccessible on the internet if I leave everything with the deprecated mysql_* extension?

                  您的應用程序只有在運行它的服務器升級到不支持舊 API 的 PHP 版本時才會中斷.如果您的服務器沒有升級到 PHP 5.5,那么您的應用程序將無限期地繼續運行.在這方面,外部互聯網上的任何其他內容都不會對其產生影響;只有升級到您自己的服務器才是相關的.

                  Your application will only break if and when the server it is running on is upgraded to a PHP version that doesn't support the old API. If your server doesn't get upgraded to PHP 5.5, then your app will continue running as is indefinitely. Nothing else on the outside internet will affect it in that respect; only upgrades to your own server are relevant.

                  目前,php 5.4 仍處于積極支持狀態,因此您可以愉快地繼續使用該版本,而無需擔心您的代碼突然中斷.

                  For the time being, php 5.4 is still actively supported, so you can happily stay on that version without needing to worry about your code suddenly breaking.

                  但是,在未來的某個時候,出于某種原因,您需要升級到 PHP 5.5 或更高版本.PHP 5.4 將停止使用,建議遷移到 5.5.或者,如果您使用的是共享主機帳戶,您甚至可能無法選擇 PHP 版本.所以是的,您應該期望您當前的代碼不能與您當時使用的 PHP 版本一起使用.最終.

                  However, at some point in the future, for one reason or another, you will need to upgrade to PHP 5.5 or higher. PHP 5.4 will become end-of-life, and a move to 5.5 will be recommended. Or if you're using a shared hosting account, you may not even have any choice over your PHP version. So yes, you should expect for your current code not to work with the PHP version you're using at the time. Eventually.

                  因此,雖然沒有立即進行轉換的緊迫性,但您應該考慮盡快進行轉換.你想要的一件事是,在事情破裂的那一天到來時,發現自己陷入困境.

                  So while there's no immediate urgency to make the switch, you should consider doing so as soon as possible. One thing you don't want is for the day to come when things break, and find yourself caught out.

                  5.5 才剛剛發布,所以你可能需要幾年時間才能讓它成為可用的最低版本,但請聽我的建議;你不想等到最后一刻.

                  5.5 has only just been released, so you probably have a few years before it becomes the lowest version available, but take my advice; you don't want to wait till the last moment.

                  我是否應該花一些時間更改所有 mysql_* 調用并使用 mysqli_* 調用切換它們.

                  Should I take some time and change all the mysql_* calls and switch them with mysqli_* calls.

                  您表示您的應用非常強大"并且可能不會得到增強".所以基本上處于長期只維護階段.

                  You stated that your app is "really robust" and "will probably not be enhanced". So it's basically in a long-term maintenance-only phase.

                  鑒于這些標準,我會說是的,簡單地切換到 mysqli 庫是一個明智的舉動.所需的更改相當微不足道(聽起來您已經掌握了要做什么),并且幾乎不會對軟件的其余部分產生任何影響.

                  Given those criteria, I would say that yes, making a simple switch to the mysqli lib is a sensible move. The changes required are fairly trivial (it sounds like you've got a handle on what to do already), and should have virtually no impact whatsoever on the rest of the software.

                  如果您的代碼確實健壯且編寫得很好,那么您將對其進行結構化,以便有某種類型的數據庫層,這意味著您無論如何都無事可做.

                  If your code is truly robust and well-written, you'll have it structured in such that there is a database layer of some sort, which will mean that you don't have much to do anyway.

                  如果它的結構不是很好,它可能會有很多 mysql_query() 調用分散在代碼中,在這種情況下,它可能需要更多的工作.在這種情況下,由于您無論如何都在處理代碼,您可能會考慮花時間進行一些重組.創建數據庫層.也許開始使用準備好的語句.我還建議切換到 PDO 而不是 mysqli.但是你的呼吁——鑒于你在問題中所說的,如果你想做盡可能少的工作,這是可以理解的.

                  If it's not so well structured, it might have a lot of mysql_query() calls scattered around the code, in which case it might take a bit more work. In this case, since you're working on the code anyway, you might consider taking the time to do a bit of restructuring. Create a database layer. Maybe start using prepared statements. I'd also recommend switching to PDO rather than mysqli. But your call -- given what you said in the question, it would be understandable if you wanted to do the minimum amount of work possible.

                  順便說一句 - 如果您還沒有這樣做,您可能還想閱讀以下內容:為什么我不應該在 PHP 中使用 mysql_* 函數?

                  By the way - If you haven't done so already, you might also want to read this: Why shouldn't I use mysql_* functions in PHP?

                  這篇關于PHP 5.5.x 中已棄用的 MySQL 擴展的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  store_result() and get_result() in mysql returns false(mysql 中的 store_result() 和 get_result() 返回 false)
                  Call to undefined function mysqli_result::num_rows()(調用未定義的函數 mysqli_result::num_rows())
                  PHP Prepared Statement Problems(PHP 準備好的語句問題)
                  mysqli_fetch_array returning only one result(mysqli_fetch_array 只返回一個結果)
                  PHP MySQLi Multiple Inserts(PHP MySQLi 多次插入)
                  How do I make sure that values from MySQL keep their type in PHP?(如何確保 MySQL 中的值在 PHP 中保持其類型?)

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

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

                          • <tfoot id='uSKPz'></tfoot>
                            主站蜘蛛池模板: 间苯二酚,间苯二酚厂家-淄博双和化工| 冷水机-工业冷水机-冷水机组-欧科隆品牌保障 | Magnescale探规,Magnescale磁栅尺,Magnescale传感器,Magnescale测厚仪,Mitutoyo光栅尺,笔式位移传感器-苏州连达精密量仪有限公司 | 东莞市踏板石餐饮管理有限公司_正宗桂林米粉_正宗桂林米粉加盟_桂林米粉加盟费-东莞市棒子桂林米粉 | 铝镁锰板厂家_进口钛锌板_铝镁锰波浪板_铝镁锰墙面板_铝镁锰屋面-杭州军晟金属建筑材料 | 合肥仿石砖_合肥pc砖厂家_合肥PC仿石砖_安徽旭坤建材有限公司 | 危废处理系统,水泥厂DCS集散控制系统,石灰窑设备自动化控制系统-淄博正展工控设备 | NM-02立式吸污机_ZHCS-02软轴刷_二合一吸刷软轴刷-厦门地坤科技有限公司 | 安徽合肥格力空调专卖店_格力中央空调_格力空调总经销公司代理-皖格制冷设备 | Magnescale探规,Magnescale磁栅尺,Magnescale传感器,Magnescale测厚仪,Mitutoyo光栅尺,笔式位移传感器-苏州连达精密量仪有限公司 | 德国BOSCH电磁阀-德国HERION电磁阀-JOUCOMATIC电磁阀|乾拓百科 | 合肥活动房_安徽活动板房_集成打包箱房厂家-安徽玉强钢结构集成房屋有限公司 | 智慧钢琴-电钢琴-便携钢琴-数码钢琴-深圳市特伦斯乐器有限公司 | 杭州顺源过滤机械有限公司官网-压滤机_板框压滤机_厢式隔膜压滤机厂家 | 小型铜米机-干式铜米机-杂线全自动铜米机-河南鑫世昌机械制造有限公司 | 槽钢冲孔机,槽钢三面冲,带钢冲孔机-山东兴田阳光智能装备股份有限公司 | IHDW_TOSOKU_NEMICON_EHDW系列电子手轮,HC1系列电子手轮-上海莆林电子设备有限公司 | 氧化锆纤维_1800度高温退火炉_1800度高温烧结炉-南京理工宇龙新材料股份有限公司 | 德州网站开发定制-小程序开发制作-APP软件开发-「两山开发」 | 无尘烘箱_洁净烤箱_真空无氧烤箱_半导体烤箱_电子防潮柜-深圳市怡和兴机电 | 科研ELISA试剂盒,酶联免疫检测试剂盒,昆虫_植物ELISA酶免试剂盒-上海仁捷生物科技有限公司 | 布袋除尘器-单机除尘器-脉冲除尘器-泊头市兴天环保设备有限公司 布袋除尘器|除尘器设备|除尘布袋|除尘设备_诺和环保设备 | 电气控制系统集成商-PLC控制柜变频控制柜-非标自动化定制-电气控制柜成套-NIDEC CT变频器-威肯自动化控制 | 美名宝起名网-在线宝宝、公司、起名平台 | 行业分析:提及郑州火车站附近真有 特殊按摩 ?2025实地踩坑指南 新手如何避坑不踩雷 | 底部填充胶_电子封装胶_芯片封装胶_芯片底部填充胶厂家-东莞汉思新材料 | 硫酸亚铁-聚合硫酸铁-除氟除磷剂-复合碳源-污水处理药剂厂家—长隆科技 | 滚筒烘干机_转筒烘干机_滚筒干燥机_转筒干燥机_回转烘干机_回转干燥机-设备生产厂家 | 广州企亚 - 数码直喷、白墨印花、源头厂家、透气无手感方案服务商! | 考勤系统_考勤管理系统_网络考勤软件_政企|集团|工厂复杂考勤工时统计排班管理系统_天时考勤 | 餐饮加盟网_特色餐饮连锁加盟店-餐饮加盟官网 | 机床主轴维修|刀塔维修|C轴维修-常州翔高精密机械有限公司 | 大通天成企业资质代办_承装修试电力设施许可证_增值电信业务经营许可证_无人机运营合格证_广播电视节目制作许可证 | 干式变压器厂_干式变压器厂家_scb11/scb13/scb10/scb14/scb18干式变压器生产厂家-山东科锐变压器有限公司 | 河南凯邦机械制造有限公司 | 成都亚克力制品,PVC板,双色板雕刻加工,亚克力门牌,亚克力标牌,水晶字雕刻制作-零贰捌广告 | 南方珠江-南方一线电缆-南方珠江科技电缆-南方珠江科技有限公司 南汇8424西瓜_南汇玉菇甜瓜-南汇水蜜桃价格 | 无锡门窗-系统门窗-阳光房-封阳台-断桥铝门窗厂[窗致美] | 东莞螺丝|东莞螺丝厂|东莞不锈钢螺丝|东莞组合螺丝|东莞精密螺丝厂家-东莞利浩五金专业紧固件厂家 | 厂房出售_厂房仓库出租_写字楼招租_土地出售-中苣招商网-中苣招商网 | 桥架-槽式电缆桥架-镀锌桥架-托盘式桥架 - 上海亮族电缆桥架制造有限公司 |