The sqlite_open function automatically creates a database file without a suffix. Is there any relationship with the SQLITE database file of DB3 generated by my management tool? ------ Solution ------------------ suffix. db3 indicates that it was created by sqlite3. Therefore, you need to load php_sqlite3 extension sqlite3 and sqlite (generally refer to the issue of s about sqlite.
The sqlite_open function automatically creates a database file without a suffix. Is there any relationship with the SQLITE database file of DB3 generated by my management tool?
------ Solution --------------------
Suffix. db3 indicates that it was created by sqlite3.
So you need to load the php_sqlite3 extension
Sqlite3 and sqlite (usually sqlite2) are incompatible because the database is completely different.
To avoid confusion, php_sqlite3 extension of php5.3 does not provide discrete functions and must be used together with php_pdo_sqlite extension.
The sqlite database file does not have a default suffix, so you must write all the names in use.
You appear
Warning: sqlite_open () [function. sqlite-open]: file is encrypted or is not a database in D: \ xampp \ htdocs \ doctrine2 \ index. php on line 2
Indicates that your database file is not of SQLite2