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

前端之家收集整理的这篇文章主要介绍了如何在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.f2er.com/php/132788.html

猜你在找的PHP相关文章