* Updated fromFile() to use fileGetContents() method
the better approach would have been to do something like this:
if(!function_exists("file_get_contents"))
{
function file_get_contents($filename, $use_include_path = 0)
{
$data = ''; // just to be safe. Dunno, if this is really needed
$file = @fopen($filename, 'rb', $use_include_path);
if($file)
{
while (!feof($file)) $data .= fread($file, 1024);
fclose($file);
}
return $data;
}
}
regards,
Lukas Smith
smith@backendmedia.com
_______________________________
BackendMedia
www.backendmedia.com
berlin@backendmedia.com
Linn Zwoch Smith GbR
Pariser Str. 44
D-10707 Berlin
Tel +49 30 83 22 50 00
Fax +49 30 83 22 50 07