JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fdb works, added fault-tollerent read_wole_file
[wfpl.git] / file.php
index 3660397..9d9965e 100644 (file)
--- a/file.php
+++ b/file.php
@@ -41,4 +41,11 @@ function write_whole_file($name, $data) {
        fclose($fd);
 }
 
+function read_whole_file_or_false($name) {
+       if(!file_exists($name)) {
+               return false;
+       }
+       return read_whole_file($name);
+}
+
 ?>