Jump to content

Opening an SQLite3 database


Arkane

Recommended Posts

Hey guys,

I've got a media player that writes to an SQLite database (XBMC), and due to file changes I need to make a mass edit to this. I can't do it in the program itself, so I figured I'd use a local XAMPP installation to edit it using PHP. I've done PHP stuff before, but not for quite a while and I'm a little rusty.

 

Sadly, my problem has come straight at the start of the

Link to comment
https://forums.phpfreaks.com/topic/251549-opening-an-sqlite3-database/
Share on other sites

Ok. pressed the submit button while getting up to tend to kids, so have missed the modify window. Sorry folks

 

The problem I have is with opening the file at the start. I have used

$dbhandle = sqlite_open('C:\Users\Steve\AppData\Roaming\XBMC\userdata\Database\MyVideos34.db', 0666, $sqliteerror); 

however this gives me an error of "Warning: sqlite_open() [function.sqlite-open]: file is encrypted or is not a database in C:\xampp\htdocs\XBMC.php on line 2"

 

I have spoken to XBMC devs, and the file is an SQLite3 file, but is not encrypted. Can anyone tell me how to open this. I have confirmed that SQLite3 is installed in the XAMPP installation using phpinfo()

 

SQLite3 module version 0.7-dev

SQLite Library 3.7.7.1

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.