sqlite is not working
Posted by: saiprem (---.14.170.122.airtelbroadband.in)
Date: February 03, 2010 01:14PM

Hi All,

I am using Wamp Server 2.0 in Windows operating System, sqlite was auto enabled and showing the same in phpinfo() as enabled(PDO SQLite).

But I am not sure why I am probing the error error message Fatal error: Class 'SQLiteDatabase' not found, when I use new SQLiteDatabase('sqlitedatabasename',0660), It seems everything looking good, can you please help me what was the problem.

Thanks in Advance
Sai Prem
[www.creativeblows.com]

Options: ReplyQuote
Re: sqlite is not working
Posted by: yfastud (Moderator)
Date: February 04, 2010 12:53AM

SQLiteManager is not included anymore, not compatible with PHP 5.3.0

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: sqlite is not working
Posted by: saiprem (---.14.170.122.airtelbroadband.in)
Date: February 04, 2010 06:26AM

Hello, Thanks for the reply, I am using wamp server 2.0, the versions in this package include are

Apache Version : 2.2.11
PHP Version : 5.2.9-2
MySQL Version : 5.1.33

The following extensions are loaded

# PDO
# pdo_mysql
# pdo_sqlite

SQLite Library 3.3.7undefined

Please check the above information, and I have sqlite is included in this package, but I am unable to use it, help me out to work with it.

Thanks & regards
Sai Prem
[www.creativeblows.com]

Options: ReplyQuote
Re: sqlite is not working
Posted by: c2dan (---.15-1.cable.virginmedia.com)
Date: February 04, 2010 07:53PM

The SQLiteDatabase class is only available to the standard sqlite extension (php_sqlite.dll). Not pdo_sqlite

Options: ReplyQuote
Re: sqlite is not working
Posted by: saiprem (---.14.170.122.airtelbroadband.in)
Date: February 05, 2010 07:48AM

I tried enabling the php_sqlite in the php.ini settings, even after doing it I am getting an error "SQLiteDatabase::__construct() [sqlitedatabase.--construct]: file is encrypted or is not a database"

If you were aware of this error, please help me.

Thanks & regards
Sai Prem
[www.creativeblows.com]



Edited 1 time(s). Last edit at 02/05/2010 07:49AM by saiprem.

Options: ReplyQuote
Re: sqlite is not working
Posted by: yfastud (Moderator)
Date: February 05, 2010 11:31PM

if using PHP Version : 5.2.9-2, sqlite already enable by default, so you would disable it when trying to enable it sad smiley

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: sqlite is not working
Posted by: saiprem (---.14.170.122.airtelbroadband.in)
Date: February 06, 2010 06:46AM

If I disable php_sqlite in the php.ini settings

I am getting an error saying Fatal error: Class 'SQLiteDatabase' not found,

when I use new SQLiteDatabase('sqlitedatabasename',0660),

So what would be the reason and how can I fix this...


Thanks & Regards
Sai Prem
[www.creativeblows.com]



Edited 1 time(s). Last edit at 02/06/2010 06:46AM by saiprem.

Options: ReplyQuote
Re: sqlite is not working
Posted by: saiprem (---.14.170.122.airtelbroadband.in)
Date: February 08, 2010 02:42PM

What Can I do to work out with wamp in my windows OS,

The Fatal error: Class 'SQLiteDatabase' not found, is kidding me.

Please help

Thanks & Regards
Sai Prem
[www.creativeblows.com]

Options: ReplyQuote


Sorry, only registered users may post in this forum.