【发布时间】:2018-12-23 13:59:57
【问题描述】:
<?php
$db = new SQLite3('phpdb.sqlite');
?>
为什么虽然启用了 SQLite,但它会给出致命错误?
我什至检查了 php.ini 文件并将其更改为:
sqlite3.extension_dir = "D:\PHP\xampp\php\ext"
错误显示:
致命错误:未捕获的错误:在中找不到类“SQLite3” D:\PHP\xampp\htdocs\midun\OOP\Chap2\index.php:4 堆栈跟踪:#0 {main} 在第 4 行扔在 D:\PHP\xampp\htdocs\midun\OOP\Chap2\index.php
(附加信息:我在 C:\sqlite 中设置了一个环境变量,这是我放置 sqlite.exe 文件的位置)
【问题讨论】:
-
phpMyAdmin 是一个供管理员管理 MySQL 或 MariaDB 数据库的应用程序,它似乎不适用于您的 SQLite 问题,所以我删除了“phpmyadmin”标签。
-
谢谢 Isaac Bennetch 先生。