diff --git a/search.php b/search.php index be6b641..f42a488 100644 --- a/search.php +++ b/search.php @@ -10,11 +10,11 @@ // Start actual search $lib = dblist(); echo "

Using dbm library '$lib'"; - $dbm = dbmopen("siteindex.db","r"); - if (dbmexists($dbm, $string)) { - $parseMe = dbmfetch($dbm, $string); + $dbm = dba_open("siteindex.db","r","dbm"); + if (dba_exists($dbm, $string)) { + $parseMe = dba_fetch($dbm, $string); } - dbmclose($dbm); + dba_close($dbm); if ($parseMe) { $filenames = preg_split("/&&/", $parseMe); for ($i = 0;$i < sizeof($filenames);$i++) {