微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

我的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

原文地址:https://www.jb51.cc/php/132788.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐