SQLite 3 and Yii 1.1.6

First of all, I want to thank the whole Yii comunity for this great Framework! Lots of documentation and help!

My problem is, I’m trying to validate a uploaded SQLite 3 database by retrieving the table names of this database. But when I try to open a database connection, I get the following error:


include(SQLite3.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory

This probably has something to do with Yii trying to use it’s own SQLite function? I’m using the following basic code:


$db= new SQLite3($this->backup->file); 

Does anyone have an idea how I could get this working? I do have SQlite support on my server!

Thanks in advance!

Anyone :unsure: ?

Have you checked this support by looking at your phpinfo()?

Can you use SQLite3 in non-Yii files?

Somehow it cannot find the SQLite3 class.

Include works like this:

Thanks for you reply!

I have checked SQLite3 support in my phpinfo(), and it is supported! I specifically requested my webhost to enable this. I am also able to use SQLite3 in non Yii-files, so the problemn should be somewhere in Yii I guess…