分类:
2008-04-10 08:57:35
In PHP 5, the SQLite extension and the engine itself are bundled and compiled by default. However, since PHP 5.1.0 you need to manually activate the extension in php.ini (because it is now bundled as shared). Moreover, since PHP 5.1.0 SQLite depends on it must be enabled too, by adding the following lines to php.ini (in order):
extension=php_pdo.dll
extension=php_pdo_sqlite.dll extension=php_sqlite.dll
php 使用 pdo 来连接 sqlite 数据库,
=>在设置扩展(extension) 的时候 pdo 扩展应该放在前面(为了这问题我搞了一个晚上).
牢记:扩展是有顺序滴,一定要搞清楚,具体关系,不要稀里糊涂就上了.