加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

如何在php中启用sqlite3的PDO驱动程序?

发布时间:2020-12-13 16:27:33 所属栏目:PHP教程 来源:网络整理
导读:我的SQLite版本是3.4.0: image 但是我的phpinfo对SQLitev3的PDO支持未启用/列出: image 我该如何启用它?我通过XAMPP安装了我的Web服务器. 我认为sqlite3的PDO驱动程序称为’sqlite’,所以你已经安装了它. sqlite2驱动程序较旧. PDO_SQLITE is a driver th
我的SQLite版本是3.4.0:
image

但是我的phpinfo对SQLitev3的PDO支持未启用/列出:
image

我该如何启用它?我通过XAMPP安装了我的Web服务器.

我认为sqlite3的PDO驱动程序称为’sqlite’,所以你已经安装了它. sqlite2驱动程序较旧.

PDO_SQLITE is a driver that
implements the PHP Data Objects (PDO)
interface to enable access to SQLite 3
databases.

In PHP 5.1,the SQLite extension also
provides a driver for SQLite 2
databases; while it is not technically
a part of the PDO_SQLITE driver,it
behaves similarly,so it is documented
alongside it. The SQLite 2 driver for
PDO is provided primarily to make it
easier to import legacy SQLite 2
database files into an application
that uses the faster,more efficient
SQLite 3 driver. As a result,the
SQLite 2 driver is not as feature-rich
as the SQLite 3 driver.

从http://php.net/manual/en/ref.pdo-sqlite.php起

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读