Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
session_new() returns id, fixed db_count()
[wfpl.git]
/
fdb.php
diff --git
a/fdb.php
b/fdb.php
index
9eab198
..
a9bb59f
100644
(file)
--- a/
fdb.php
+++ b/
fdb.php
@@
-33,6
+33,7
@@
require_once('code/wfpl/file.php');
require_once('code/wfpl/file.php');
+require_once('code/wfpl/binary.php');
# call this to set what directory is used to store the files
function fdb_set_dir($dir) {
# call this to set what directory is used to store the files
function fdb_set_dir($dir) {
@@
-137,4
+138,13
@@
function fdb_set($key, $data) {
fdb_set_raw($key, $out);
}
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;
+}
+
?>
?>