I need to open a Spatialite database by using php in a php's framework. I've already work on a basic php file to test how it work but it gave me some errors.
I've already try to load extension by using two method :
$db->loadExtension('mod_spatialite.so'); Warning: SQLite3::loadExtension(): Not supported in multithreaded Web servers in C:\applications\www\sqlite3_ext\index.php on line 19
$db->exec("SELECT load_extension('mod_spatialite.so')"); Warning: SQLite3::exec(): not authorized in C:\applications\www\sqlite3_ext\index.php on line 20
Utilities : Use a wamp (3.0.0) for a local server - PHP 7.0.0 - Mysql - Apache 2.4.17