php fatal error: class sqlite3 is not found in

前端 未结 8 1698
别跟我提以往
别跟我提以往 2020-12-20 12:46

Im using ubuntu 12.04, and php 5.x I need to use sqlite3 in it but Im getting an error of

php fatal error: class sqlite3 not found

I done

8条回答
  •  梦毁少年i
    2020-12-20 13:22

    For the error PHP Fatal error: Uncaught Error: Class 'SQLite3' not found in /path/file.php:1 on ArchLinux:

    Install the sqlite extension for PHP:

    $ sudo pacman -S php-sqlite
    

    Then edit /etc/php/php.ini and add:

    extension=pdo_sqlite
    extension=sqlite3
    

    Source: 1

提交回复
热议问题