Citation :
<?php
// Create a new Db4 Instance
$db = new Db4();
//open($txn = null, $file = null, $database = null, $flags = DB_CREATE, $mode = 0)
$db->open(null, "source/data/database","test" );
$key = "";
$txn = NULL;
//get($key, $txn = null, $flags = 0)
$test_1 = $db->get($key);
echo ("--> ".$test_1." <--" );
// Sync to be certain, since we're leaving the handle open
$db->sync();
// This isn't a real close, use _close() for that.
$db->close();
?>
|