Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试通过 Phar 存档中的 PDO 扩展访问 SQLite 数据库,但出现错误:
带有消息“SQLSTATE [HY000] [14] 无法打开数据库文件”的异常“PDOException”
PHP手册说可以修改存档中的文件。我该如何解决?
经过一番研究,我意识到,这个问题可以通过一个小技巧来解决。
不是非常可靠的解决方案 - 您需要小心未处理的错误或异常,因为您可能会丢失所做的更改。