本文介绍了从PHP 5.25连接到SQLite3数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我现在正试图连接到SQLite3数据库好几天但是我被卡住了。 PHP 返回一个错误,我做了一个调用未定义函数sqlite_open()。在 php.ini中设置了extension = php_pdo.dll和extension = php_sqlite.dll。 我做错了什么??? 提前谢谢你, JohnHi,I''m trying to connect to a SQLite3 database for days now but I''m stuck. PHPreturns an error that I made a "call to undefined function sqlite_open(). Inthe php.ini the extension=php_pdo.dll and extension=php_sqlite.dll are set.What am I doing wrong???Thank you in advance,John推荐答案 phpinfo()告诉你有关SQLite支持的内容是什么? 另外,请查看手册以了解有关安装的问题: http://www.php.net/sqlite - Rik WasmusWhat does phpinfo() tell you about SQLite support?Also, check the manual for issues regarding installation: http://www.php.net/sqlite--Rik Wasmus 您激活的扩展名不相关。 php_pdo.dll 包含核心PDO函数,php_sqlite.dll包含 "普通" sqlite扩展名。 Havind和激活后者应该在sqlite_open()中获得的收益率。但是,也许你的意思是 php_pdo_sqlite.dll然后这意味着你为PDO安装了sqlite 模块而且你只能通过PDO使用sqlite。 OLLi PS:无论如何都推荐使用PDO ;-) - 它会像地狱一样受伤,但它应该是。 [医生,BG 107]The extensions you have activated are not related. The php_pdo.dllcontains the core PDO functions and the php_sqlite.dll contains the"ordinary" sqlite extension. Havind and activating the latter shouldyield in sqlite_open() being available. However, perhaps you meantphp_pdo_sqlite.dll and then this would mean you installed the sqlitemodule for PDO instead and that you can only use sqlite through PDO.OLLiPS: Always using PDO is recommended anyway ;-)--"It''s gonna hurt like hell, but it''s supposed to."[Doctor, BG 107] phpinfo()告诉你关于SQLite支持的内容是什么? 另外,请查看手册中有关安装的问题: http://www.php.net/sqlite 请使用bottomposting,并正确引用。 MSOE有一些怪癖,所以 如果你还没有准备好,请安装OEQuotefix。 2007年12月4日星期二12:10:34 + 0100,John<不要使用<" this>"写道:Please use bottomposting, and quote correctly. MSOE has some quircks, soif you haven''t allready, please install OEQuotefix.On Tue, 04 Dec 2007 12:10:34 +0100, John <do not use <"this>"wrote: phpinfo()告诉你什么文件用于设置(配置 文件(php.ini)路径)?特别是在Windows上,你编辑的文件可能不会是它所使用的文件...What file does phpinfo() tell you is used for the settings (ConfigurationFile (php.ini) Path)? Especially on Windows, the file you edit might notbe the file it uses... 如果在Windows上,PHP版本> = 5.1,这是正确的。 - Rik WasmusIf on Windows, with a PHP version >= 5.1, that would be correct.--Rik Wasmus 这篇关于从PHP 5.25连接到SQLite3数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!