添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

As I'm transitioning all of my PHP to use MySQLi instead of MySQL (mainly so that I can update to PHP 7.x), I realize that I can't find anything for Perl to use MySQLi.

I'm currently using the DBI module to access MySQL:

[ metacpan.org ...]

Is there an option to change it to MySQLi? Either way, is there any real advantage in doing so? I have to assume that there is since PHP 7.x is forcing my to rewrite everything to switch... surely it's not arbitrary?
Hello,

As mentioned by @dimitri , MySQLi is just a library for PHP, it replaces the previous MySQL PHP library because it's "improved" (the "i"), so PHP depreciated the former MySQL PHP library.

That being said, if you are in a process of rewriting / reviewing your code , you should use the PHP PDO class [ php.net ...] , this is safer and more future proof . The PDO class provides a series of function to do any kind of DB manipulations, and it independent from the DB engine. So , for example, if one day, you decided to switch from MySQL to another DB engine, you'll be able to keep your code, and just change the db engine, when you create the PDO object.
  • October 2024 Google Search Observations
  • I cannot access my GSC account
  • Search Volatility Issue
  • Giving Up? Nope, Off In A Fresh Direction!
  • Sam Altman Says We May Have Superintelligence in a Few Thousand Days
  • Performance Max Google Ads campaigns
  • Private prefetch proxy in Chrome
  • Hacker using backlinks with malware causing penalty
  • Our On Page SEO Works were not very effective
  • Huge decline on all the links posted from 25th september
  • © WebmasterWorld 1996-2024 all rights reserved. TOS and Privacy Policy . All trademarks and copyrights held by respective owners.
    SearchEngineWorld and WebmasterWorld are owned by Pubcon .
    Thanks to Jim Boykin for taking care of WebmasterWorld for 5 yrs!
    (2012-2017)