sqllite

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jeanmarc

    sqllite

    Bonjour les pros !

    Je tente de me connecter à une base sqllte et j'obtiens
    systematiquemen t le message :

    if ($db = sqlite_open('my sqlitedb', 0666, $sqliteerror)) {
    sqlite_query($d b,'CREATE TABLE foo (bar varchar(10))');
    sqlite_query($d b,"INSERT INTO foo VALUES ('fnord')");
    $result = sqlite_query($d b,'select bar from foo');
    var_dump(sqlite _fetch_array($r esult));
    } 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


  • Bent Stigsen

    #2
    Re: sqllite

    jeanmarc wrote:
    [snip][color=blue]
    > 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)[/color]
    [snip]

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

    /Bent

    Comment

    Working...