You are here: Re: Connecting to SQLite3 database from PHP 5.25 « PHP Programming Language « IT news, forums, messages
Re: Connecting to SQLite3 database from PHP 5.25

Posted by C. (http://symcbean.blogspot.com/) on 12/04/07 14:02

On 4 Dec, 11:50, "Rik Wasmus" <luiheidsgoe...@hotmail.com> wrote:
> On Tue, 04 Dec 2007 12:31:33 +0100, Oliver Grätz <oliver.gra...@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

BTW phpinfo() will also tell you where it is trying to load the
php.ini file *from* maybe you updated the wrong one?

C.

 

Navigation:

[Reply to this 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

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