Reply to Re: Connecting to SQLite3 database from PHP 5.25

Your name:

Reply:


Posted by Rik Wasmus on 12/04/07 11:50

On Tue, 04 Dec 2007 12:31:33 +0100, Oliver Grätz <oliver.graetz@gmx.de>
wrote:

> John schrieb:
>> 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???
>
> 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.

Well, a quick look at the manual:
"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 PDO it must be enabled too, by
adding the following lines to php.ini (in order):
extension=php_pdo.dll
extension=php_sqlite.dll"

... so the OP is correct.


--
Rik Wasmus

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация