Reply to SQLite present, but class SQLiteDatabase not available

Your name:

Reply:


Posted by s.komendera on 09/24/07 10:51

Hello

I have quite strange problem. I compiled PHP with PDO (shared), SQLite
(shared), pdo_sqlite and pdo_mysql:

--enable-pdo=shared
--with-pdo-mysql=shared,/usr
--with-sqlite=shared
--with-pdo-sqlite=shared

Compiling process was all OK.

Then, I added following lines to php.ini:

extension=pdo.so
extension=pdo_sqlite.so
extension=sqlite.so
extension=pdo_mysql.so

(In that order). I restarted the webserver (Apache2).

Then, I issued a command: php -m, which told me that I have PDO and
SQLite extensions loaded without errors. I also checked it via
phpinfo() and all I found all the info about PDO/SQLite.

Procedural functions like sqlite_open ARE WORKING OK, but when I want
to use $db = new SQLiteDatabase, PHP says that SQLiteDatabase class is
not found! Why is that? I listed all predefined classes in my script
and SQLiteDatabase is not on the list.

I thought I installed everything properly, where is the problem?

Thanks for any help,

--
Szymon

[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

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