I am planning to work on a PHP application in a Debian sid environment. In this application I would like to use the SQLite library to store some data. As it is really not much data to store and as I want to be independent from a database server I would like to avoid using a real database system like MySQL. I really like the idea of using SQLite as a middle way between MySQL and storing the data in a plain text file.
Now my problem is, that the SQLite functions seem to work only in PHP5 at least that's what the documentation on php.net says. On the description page to every single SQLite function there is the major PHP version given in parantheses at the top of the page, and there is always PHP5 and never PHP4 (like here).
On the other hand there is a package in Debian sid called "php4-sqlite". That gave me some hope and I ignored the php.net documentation, installed the package and tried
Code: Select all
<?php sqlite_open(foo); ?>
So it seems php.net is proved correct and the functions really work exclusively in PHP5. But if so, what is the php4-sqlite package good for anyways? Is there still a way to get SQLite running with PHP4? I really would like to avoid installing PHP5 by hand and give up the convinient apt-get upgrade service.Fatal error: Call to undefined function: sqlite_open() in path/index.php on line 1
Oh, my exact Apache and PHP versions are: Apache/2.0.54 (Debian GNU/Linux) PHP/4.3.10-15 (just the current versions in Debian sid...)
Regards,
mority
UPDATE:
Now, I am really confused. I found a nice source for all PHP5 packages through apt-get.org (deb http://people.debian.org/~dexter php5 sid). So I installed all the php5 packages from this source and it works just fine. phpinfo() says
But now, and that's what I don't understand at all, I get the same error message forPHP Version 5.0.4-0.10 (Debian GNU/Linux)
Code: Select all
sqlite_open(foo);