Hello ,
i want to distribute my php app as standalone app instead of making user choose the path and do some hardwork , as most of my clients are living abroad and don’t know how to setup the php app .
i distribute my app using php nightrain .
i can normally give path if i manually write the php code
<?php
class MyDB extends SQLite3
{
function __construct()
{
$this->open('combadd.sqlite');
}
}
$db = new MyDB();
if(!$db){
echo $db->lastErrorMsg();
} else {
echo "Opened database successfully
";
}
?>
however in script , i have to give full path .
which is a little complicated when you dont know where will the user will put the app folder .
can you please help by give us a way to make sqlite , attached or included into project folder .
or inform me where does connection information saved .