Quantcast
Channel: ExeOutput for PHP - G.D.G. Software Forum
Viewing all articles
Browse latest Browse all 1024

Embedding SQLite in the EXE

$
0
0

@fmcleod wrote:

Okay, call me dense! I want to embed a read-only database into my EXE output. I have read the documentation about using something like:
$storagelocation = exo_getglobalvariable('HEPubStorageLocation', '');
$dbname = $storagelocation.'mysqlitedb.db';

and that the database will be in the 'Data' folder ... is that a virtual folder or a folder on my hard drive? I have tried putting my database in 'Data' in the structure of the files/folders being compiled. I have tried using
$storagelocation = exo_getglobalvariable('HEPubStorageLocation', '');
$dbname = $storagelocation.'mysqlitedb.db';
AND
$storagelocation = exo_getglobalvariable('HEPHPDataPath', ''); $db = $storagelocation.'musanizer-utilities.db';

It is not loading. I still get an error message about no such table when I try to do a query. I just don't understand what I am doing wrong. The directions seem to assume that I know more than I do! smile

Thanks for help,

Frank

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 1024

Trending Articles