X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=misc.php;h=5678b673618ff9ab3738c6f91ce3f5b0084cc3af;hb=73490300ca9dea6fc3c6d3a474ab49796fd58438;hp=ff0d2272931dcd5f2c3188dedc097a1889df7a00;hpb=22d5fb7ab7d4ee86bd59e194387dca268bd577a1;p=wfpl.git diff --git a/misc.php b/misc.php index ff0d227..5678b67 100644 --- a/misc.php +++ b/misc.php @@ -18,16 +18,6 @@ # along with wfpl; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -function read_whole_file($name) { - $fd = fopen($name, 'r'); - if($fd === false) { - die("Failed to read file: '$name'"); - } - $file_data = fread($fd, filesize($name)); - fclose($fd); - return $file_data; -} - function unix_newlines($str) { $str = str_replace("\r\n", "\n", $str); return str_replace("\r", "\n", $str);