[Typo3-dev] ObTS ready.
Ingmar Schlecht
ingmars at web.de
Sat Dec 13 15:34:44 CET 2003
Hi Dan,
dan frost wrote:
> Yep - I'll change this in the next version.
>
> Patch it with something like fopen...
>
> It's a bit annoying - because in PHP5 there's a nice function
> file_put_content(). Nice and simple.
suggestion for the next release:
put the following into ext_localconf.php
if(!function_exists('file_get_contents')) {
function file_get_contents($filename) {
$fd = fopen("$filename", "rb");
$content = fread($fd, filesize($filename));
fclose($fd);
return $content;
}
}
- Ingmar
More information about the TYPO3-dev
mailing list