file is encrypted or is not a database
errors - in php if I use perl to create the file and perl if I use php. some initial googling seems to think that it's because the two libaries are using different sqlite versions, but I'm not entirely sure.
please tell me that someone has seen this before and there is an obvious fix to the compatibility issues.
Different SQLite versions? (Score:2)
I don't know what version of SQLite PHP 5 is using, but checking for Perl is quite easy, according to the changes file [cpan.org], DBD::SQLite started using SQLite 3 starting with DBD::SQLite version 1.00. So, whatever version it is you have, try installing the latest one of the other generation.
I wish Perl had a better way to have different generations of modules live together, but I think the best you can do in order not to
Re:Different SQLite versions? (Score:1)
And thus the reason for DBD::SQLite2 [cpan.org]. From the README for DBD::SQLite2,
Re:Different SQLite versions? (Score:2)
Re:Different SQLite versions? (Score:1)
-adam
Re:Different SQLite versions? (Score:2)
while this is neither a php nor perl concern, I was able to put my finger on why this all felt so strange to me this week at nyphp: if versions 2 and 3 databases are not compatible, I would expect that a version 2 client would bomb, however I would expect a version 3 client to say "whoa - you're using a version 2 database." the way it is now, you get this cryptic "file is encrypted" error in both directions, which is very user unfriendly.
Re:Different SQLite versions? (Score:1)