vendredi 8 mai 2015

Using PHP and SQLite on Tomcat with Quercus

I'm currently trying to add in a PHP login system to a web app that's hosted on an Apache Tomcat server. In order to get the PHP functionality, I integrated Quercus and have managed to get PHP code to be interpreted. I'm now trying to work with an SQLite file using this set-up, but haven't been able to get a JDBC driver to work.

I've downloaded the driver from http://ift.tt/UrdTIP and added it to my WEB-INF/lib folder. I then added in the JDBC file to my php.ini file, and referenced the ini file in my WEB-INF/web.xml file. When I then try and put the following code in a try/catch block to connect to the file, it doesn't work:

$pdo = new PDO("jdbc:sqlite:/C:/apache-tomcat/webapps/test/test.sqlite");

Does anyone have any experience with getting SQLite to work with Quercus?

Aucun commentaire:

Enregistrer un commentaire