Available DBA handlers:
";
foreach (dba_handlers(true) as $handler_name => $handler_version) {
// clean the versions
$handler_version = str_replace('$', '', $handler_version);
echo "- $handler_name: $handler_version
";
}
echo '
';
$id = dba_open($db,'r','db4');
if ($id !== FALSE) {
$key = dba_firstkey($id);
echo '';
$handle_later = array();
while ($key != false) {
$k = unpack('H*',$key );
echo '- key : ' . $k[1] . '
';
// use this to display as-is instead of as hex
// echo '- key : ' . $key . '
';
$handle_later[] = $key;
$key = dba_nextkey($id);
}
echo '
';
echo '';
if (count($handle_later) > 0) {
foreach ($handle_later as $val) {
// uncomment this code if the data is hex
//$k = unpack('H*',dba_fetch($val, $id));
//echo '- ' . $k[1] . '
';
echo '- ' . dba_fetch($val, $id) . '
';
}
echo '
';
} else {
echo 'nothing here
';
}
} else {
echo 'couldn\'t open db
';
}
?>