Adding workaround for PHP < 4.3.0 where file_get_contents does not exist.

This commit is contained in:
defacer 2005-02-25 02:46:05 +00:00
parent a43b5308c8
commit 7ab8bb7160

View File

@ -96,4 +96,11 @@ function put_records_csv($file, $records, $table = NULL) {
return true;
}
if (!function_exists('file_get_contents')) {
function file_get_contents($file) {
$file = file($file);
return !$file ? false : implode('', $file);
}
}
?>