From cedric.messiant@lipn.univ-paris13.fr Wed Jul 11 10:10:44 2007 From: Cedric Messiant To: systeme@lipn.univ-paris13.fr Subject: [Systeme] PHP + sqlite3 Date: Wed, 11 Jul 2007 10:10:43 +0200 Message-ID: <46949083.403@lipn.univ-paris13.fr> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7622283688606287573==" --===============7622283688606287573== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Bonjour, je suis en train de coder une interface graphique pour mon système. J'aimerais éxécuter des requêtes SQL à partir d'une page PHP J'ai testé hier chez moi et ça marchait plutôt bien mais je crois qu'ici il manque le support SQLite3 pour PHP. voilà l'erreur retournée dans le code HTML généré par mon PHP : Warning: dl() [function.dl]: Unable to load dynamic library '/usr/lib/php4/20050606+lfs/sqlite3.so' - /usr/lib/php4/20050606+lfs/sqlite3.so: cannot open shared object file: No such file or directory in /users/messiant/public_html/scfrch.php on line 16 Fatal error: Call to undefined function: sqlite_open() in /users/messiant/public_html/scfrch.php on line 17/> Merci, Cédric --===============7622283688606287573==-- From Jean-Christophe.Dubacq@lipn.univ-paris13.fr Wed Jul 11 11:34:14 2007 From: Jean-Christophe Dubacq To: systeme@lipn.univ-paris13.fr Subject: Re: [Systeme] PHP + sqlite3 Date: Wed, 11 Jul 2007 11:34:05 +0200 Message-ID: <4694A40D.4030700@lipn.univ-paris13.fr> In-Reply-To: <46949083.403@lipn.univ-paris13.fr> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2991111342125644424==" --===============2991111342125644424== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Cedric Messiant wrote: > Bonjour, > > je suis en train de coder une interface graphique pour mon système. > J'aimerais éxécuter des requêtes SQL à partir d'une page PHP > J'ai testé hier chez moi et ça marchait plutôt bien mais je crois qu'ici > il manque le support SQLite3 pour PHP. > > voilà l'erreur retournée dans le code HTML généré par mon PHP : > > Warning: dl() [function.dl]: Unable to load > dynamic library '/usr/lib/php4/20050606+lfs/sqlite3.so' - > /usr/lib/php4/20050606+lfs/sqlite3.so: cannot open shared object file: > No such file or directory in /users/messiant/public_html/scfrch.php on > line 16 > > Fatal error: Call to undefined function: sqlite_open() in > /users/messiant/public_html/scfrch.php on line 17/> > Il faut sans doute installer le paquet « php-sqlite3 ». Le but est de l'installer sur le serveur web. Pourquoi ne pas utiliser une base mysql plutôt que sqlite ? La base mysql est déjà installée et fonctionnelle. --===============2991111342125644424== Content-Type: application/pgp-signature Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="signature.asc" MIME-Version: 1.0 LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KVmVyc2lvbjogR251UEcgdjEuNC42IChHTlUv TGludXgpCkNvbW1lbnQ6IFVzaW5nIEdudVBHIHdpdGggTW96aWxsYSAtIGh0dHA6Ly9lbmlnbWFp bC5tb3pkZXYub3JnCgppRDhEQlFGR2xLUVRrTTJDaHpqUWtyUVJBc3ZDQUo5bGVTUTFPMzJzMC9H YWRsVnhtRlpWakJmZk5RQ2dsZ3NJClFwTG9waGhwMzBpRytVQld5OW5rNk5BPQo9MGtzTAotLS0t LUVORCBQR1AgU0lHTkFUVVJFLS0tLS0K --===============2991111342125644424==--