SQLite3 is missing

379 views
Skip to first unread message

Marthad Musa

unread,
Aug 7, 2021, 11:42:40 AM8/7/21
to PHP Desktop
Hi, guys. I recently started working with PHP Desktop Chrome application and when ever I try to connect to a SQLite database I get this error:

Fatal error: Uncaught Error: Class 'SQLite3' not found in E:\sms\www\db-config.php:2 Stack trace: #0 {main} thrown in E:\sms\www\db-config.php on line 2

My db-config.php code is as follows:

error.png

If anyone cold help me I would much appreciate it.

Czarek Tomczak.

unread,
Aug 7, 2021, 1:20:02 PM8/7/21
to PHP Desktop
Do you use the default PHP version shipped with PHP Desktop? It has this line in php.ini: 

extension=php_sqlite3.dll

Try also running the sqlite.php example that comes with PHP Desktop.

Marthad Musa

unread,
Aug 8, 2021, 9:55:38 AM8/8/21
to PHP Desktop
Thank you for replying. I truly never noticed that there is an example database attached. I thank you for pointing it out for me. I will try it and get back to you. Thank you again for taking the time to respond to my query.
Reply all
Reply to author
Forward
0 new messages