X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=misc.php;fp=misc.php;h=18a1a41727a99a4968efff7008900a80207fce26;hb=ddd681b6dcd0ef511238e96a0c3b94d9e8600ef2;hp=ff0d2272931dcd5f2c3188dedc097a1889df7a00;hpb=a7b354fd625aa1d53f8d9913c7e117bc0ba5ebb7;p=wfpl.git diff --git a/misc.php b/misc.php index ff0d227..18a1a41 100644 --- a/misc.php +++ b/misc.php @@ -18,6 +18,9 @@ # along with wfpl; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# This exists because file_get_contents() is not documented well. (It says that +# the second parameter is optional, but does not specify what happens when you +# do not pass anything.) And because it's nice to work in PHP4.2 function read_whole_file($name) { $fd = fopen($name, 'r'); if($fd === false) {