From: Jason Woofenden Date: Fri, 8 Jun 2007 09:09:19 +0000 (-0400) Subject: added fdb_delete() (UNTESTED) X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl.git;a=commitdiff_plain;h=1297396379e2f82280539e6fbcbe52ec4770b7ec added fdb_delete() (UNTESTED) --- diff --git a/fdb.php b/fdb.php index 9eab198..99f63cb 100644 --- a/fdb.php +++ b/fdb.php @@ -137,4 +137,13 @@ function fdb_set($key, $data) { fdb_set_raw($key, $out); } +function fdb_delete($key) { + $key = fdb_fix_key($key); + $path = fdb_get_dir() . "/$key"; + if(file_exists($path)) { + return unlink($path); + } + return false; +} + ?>