Yeah, I did something similar in perl. Basically, just add DBI:QLite support to your linux machine, and connect to it like you would a mysql db. Really easy.
Due to a harddisk crash all my php scripts are lost
Unfortunalty I do not have enough spare time at the moment to re-write them but I hope that I will have some time to code after christmas.