cvs: pearweb /include pear-prepend.php

From: Date: Thu, 25 Apr 2002 01:40:01 +0000
Subject: cvs: pearweb /include pear-prepend.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-3536@lists.php.net to get a copy of this message
ssb Wed Apr 24 21:40:01 2002 EDT Modified files: /pearweb/include pear-prepend.php Log: * define file_get_contents() if running with an old-ish PHP Index: pearweb/include/pear-prepend.php diff -u pearweb/include/pear-prepend.php:1.27 pearweb/include/pear-prepend.php:1.28 --- pearweb/include/pear-prepend.php:1.27 Fri Apr 12 22:08:04 2002 +++ pearweb/include/pear-prepend.php Wed Apr 24 21:40:01 2002 @@ -75,4 +75,15 @@ auth_reject(null, "Invalid username ($__user) or password <a href=\"/?logout=1\">[logout]</a>"); } +if (!function_exists('file_get_contents')) { + function file_get_contents($file, $use_include_path = false) { + if (!$fp = fopen($file, 'r', $use_include_path)) { + return false; + } + $data = fread($fp, filesize($file)); + fclose($fp); + return $data; + } +} + ?>

« previous php.pear.cvs (#3536) next »