Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Bonjour les pros !

Je tente de me connecter  une base sqllte et j'obtiens
systematiquement le message :

if ($db = sqlite_open('mysqlitedb', 0666, $sqliteerror)) {
  sqlite_query($db,'CREATE TABLE foo (bar varchar(10))');
  sqlite_query($db,"INSERT INTO foo VALUES ('fnord')");
  $result = sqlite_query($db,'select bar from foo');
} else {
  die ($sqliteerror);

Fatal error: Call to undefined function sqlite_open() in  
C:\wamp\www\POO\_debug_tmp.php on line 2

comment rsoudre ce problme ( j'utilise wamp)

Merci d'avance pour vos conseils

Jean Marc  

Re: sqllite

jeanmarc wrote:
Quoted text here. Click to load it

I don't speak french, but I guess this is what you want to know.

- download php_sqlite.dll (appropriate version)

- place it (php_sqlite.dll) where all the other php extensions are.

- In "php.ini" you'll find a list of "extension=...". Add  
php_sqlite.dll to the list.

- restart apache service

- check extension is loaded with: phpinfo(INFO_MODULES);


Site Timeline