从PHP 5.25连接到SQLite3数据库 [英] Connecting to SQLite3 database from PHP 5.25

查看:83
本文介绍了从PHP 5.25连接到SQLite3数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我现在正试图连接到SQLite3数据库好几天但是我被卡住了。 PHP

返回一个错误,我做了一个调用未定义函数sqlite_open()。在

php.ini中设置了extension = php_pdo.dll和extension = php_sqlite.dll。

我做错了什么???


提前谢谢你,

John

Hi,

I''m trying to connect to a SQLite3 database for days now but I''m stuck. PHP
returns an error that I made a "call to undefined function sqlite_open(). In
the php.ini the extension=php_pdo.dll and extension=php_sqlite.dll are set.
What am I doing wrong???

Thank you in advance,
John

推荐答案

2007年12月4日星期二11:40 :48 + 0100,John< jo *** @faramir.nlwrote:
On Tue, 04 Dec 2007 11:40:48 +0100, John <jo***@faramir.nlwrote:

我现在正试图连接到SQLite3数据库好几天但是我'卡住了..

PHP

返回一个错误,我做了一个调用未定义的函数

sqlite_open()。在

php.ini中的扩展名= php_pdo.dll和扩展名= php_sqlite.dllare

设置。

我做错了什么? ?
I''m trying to connect to a SQLite3 database for days now but I''m stuck..
PHP
returns an error that I made a "call to undefined function
sqlite_open(). In
the php.ini the extension=php_pdo.dll and extension=php_sqlite.dllare
set.
What am I doing wrong???



phpinfo()告诉你有关SQLite支持的内容是什么?

另外,请查看手册以了解有关安装的问题:
< a rel =nofollowhref =http://www.php.net/sqlitetarget =_ blank> http://www.php.net/sqlite

-

Rik Wasmus

What does phpinfo() tell you about SQLite support?
Also, check the manual for issues regarding installation:
http://www.php.net/sqlite
--
Rik Wasmus


John schrieb:
John schrieb:




我现在正试图连接到SQLite3数据库好几天但是我被卡住了。 PHP

返回一个错误,我做了一个调用未定义函数sqlite_open()。在

php.ini中设置了extension = php_pdo.dll和extension = php_sqlite.dll。

我做错了什么???
Hi,

I''m trying to connect to a SQLite3 database for days now but I''m stuck. PHP
returns an error that I made a "call to undefined function sqlite_open(). In
the php.ini the extension=php_pdo.dll and extension=php_sqlite.dll are set.
What am I doing wrong???



您激活的扩展名不相关。 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.dll
contains the core PDO functions and the php_sqlite.dll contains the
"ordinary" sqlite extension. Havind and activating the latter should
yield in sqlite_open() being available. However, perhaps you meant
php_pdo_sqlite.dll and then this would mean you installed the sqlite
module for PDO instead and that you can only use sqlite through PDO.

OLLi

PS: Always using PDO is recommended anyway ;-)

--
"It''s gonna hurt like hell, but it''s supposed to."
[Doctor, BG 107]


" Rik Wasmus" < lu ************ @ hotmail.comwrote in message
"Rik Wasmus" <lu************@hotmail.comwrote in message

news:op ********** ***** @ metallium.lan ...

星期二,2007年12月4日11:40:48 +0100,John< jo *** @faramir.nlwrote:
news:op***************@metallium.lan...
On Tue, 04 Dec 2007 11:40:48 +0100, John <jo***@faramir.nlwrote:

>我正在尝试连接SQLite3数据库好几天但是我被卡住了。
PHP
返回我做的错误a调用未定义的函数
sqlite_open()。

php.ini中设置extension = php_pdo.dll和extension = php_sqlite.dll。
我做错了什么???
>I''m trying to connect to a SQLite3 database for days now but I''m stuck.
PHP
returns an error that I made a "call to undefined function
sqlite_open().
In
the php.ini the extension=php_pdo.dll and extension=php_sqlite.dll are
set.
What am I doing wrong???



phpinfo()告诉你关于SQLite支持的内容是什么?

另外,请查看手册中有关安装的问题:
< a rel =nofollowhref =http://www.php.net/sqlitetarget =_ blank> 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, so
if you haven''t allready, please install OEQuotefix.

On Tue, 04 Dec 2007 12:10:34 +0100, John <do not use <"this>"wrote:


感谢您的快速回复。 phpinfo()根本没有提到SQLite。
Thanks for your speedy reply. phpinfo() doesn''t mention SQLite at all.



phpinfo()告诉你什么文件用于设置(配置

文件(php.ini)路径)?特别是在Windows上,你编辑的文件可能不会是它所使用的文件...

What file does phpinfo() tell you is used for the settings (Configuration
File (php.ini) Path)? Especially on Windows, the file you edit might not
be the file it uses...


作为

完成新手到php,我阅读了安装手册并得出结论



只采取的行动是包括extension = lines。
As a
complete newby to php, I read the installation manual and concluded that
the
only action to take was to include both extension = lines.



如果在Windows上,PHP版本> = 5.1,这是正确的。

-

Rik Wasmus

If on Windows, with a PHP version >= 5.1, that would be correct.
--
Rik Wasmus


这篇关于从PHP 5.25连接到SQLite3数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆