I am trying to create a SQLite database file for iOS and Android. However, I am running into an issue I have, so far, not been able to solve.
Point is, I know how to create a SQLite database on both devices, and I know how to do it in PHP, but somehow they cannot read each-others databases.
How I create/open the sqlite file in php:
$dbhandle = sqlite_open('icddb.sqlite', 0777, $error);
I do queries like this:
sqlite_exec($dbhandle,$query);
When I put the filled database to iOS, this message is displayed:
file is encrypted or is not a database
How can this be solved? I have same problem when I create the SQLite file with firefox plugin 'SQLite Manager'
Note: PHP is in any case able to open the SQLite file.
Edit:
Apparently the latest stable PHP version creates a SQLite v2 file instead of a v3, which is used by all other. This probably is also my fix.