470,810 Members | 855 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,810 developers. It's quick & easy.

sqllite

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');
var_dump(sqlite_fetch_array($result));
} else {
die ($sqliteerror);
}
Fatal error: Call to undefined function sqlite_open() in
C:\wamp\www\POO\_debug_tmp.php on line 2

comment résoudre ce problème ( j'utilise wamp)

Merci d'avance pour vos conseils

Jean Marc
Jan 16 '06 #1
1 2749
jeanmarc wrote:
[snip]
Fatal error: Call to undefined function sqlite_open() in
C:\wamp\www\POO\_debug_tmp.php on line 2

comment résoudre ce problème ( j'utilise wamp)

[snip]

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

- download php_sqlite.dll (appropriate version)
http://snaps.php.net/win32/PECL_STABLE/php_sqlite.dll

- 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);

/Bent
Jan 17 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Lothar Scholz | last post: by
reply views Thread by lawrence | last post: by
1 post views Thread by Simon Roses Femerling | last post: by
4 posts views Thread by pet100us | last post: by
33 posts views Thread by Will McGugan | last post: by
2 posts views Thread by mir nazim | last post: by
3 posts views Thread by nexes | last post: by
2 posts views Thread by rohitskapoor | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.