Arkane Posted November 21, 2011 Share Posted November 21, 2011 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 Quote Link to comment https://forums.phpfreaks.com/topic/251549-opening-an-sqlite3-database/ Share on other sites More sharing options...
Arkane Posted November 21, 2011 Author Share Posted November 21, 2011 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 Quote Link to comment https://forums.phpfreaks.com/topic/251549-opening-an-sqlite3-database/#findComment-1290044 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.