Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
030f09a
)
added fdb_delete() (UNTESTED)
author
Jason Woofenden
<jason183@herkamire.com>
Fri, 8 Jun 2007 09:09:19 +0000
(
05:09
-0400)
committer
Jason Woofenden
<jason183@herkamire.com>
Fri, 8 Jun 2007 09:09:19 +0000
(
05:09
-0400)
fdb.php
patch
|
blob
|
history
diff --git
a/fdb.php
b/fdb.php
index
9eab198
..
99f63cb
100644
(file)
--- 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;
+}
+
?>