Topic: TinyMCE Compressor with PHP < 4.3.0
Hi,
when using the compressor with PHP < 4.3.0, you get an error, because file_get_contents() was introduced in 4.3.0.
In my opionion you sould add something like this, to get the compressor workin also with < 4.3.0
if (!function_exists('file_get_contents'))
{
function file_get_contents($filename)
{
$fd = fopen($filename, 'rb');
$content = fread($fd, filesize($filename));
fclose($fd);
return $content;
}
}Bye,
Markus
Last edited by kills (2006-01-30 22:00:57)