Result for MagpieRSS : ';
timer_stop(1);
if ($print) {
print '
';
print_r($magpie);
print '
';
}
### LASTRSS
timer_start();
require_once '../../lastrss/lastRSS.php';
$rss = new lastRSS;
if ($use_cache) {
$rss->cache_dir = './cache';
} else {
$rss->cache_dir = '';
}
$rss->cache_time = 3600;
$a=0;
do {
$a++;
$rs = $rss->get($feed);
} while ($a<$loop);
print 'Result for LastRSS : ';
timer_stop(1);
if ($print) {
print '
';
print_r($rs);
print '
';
}
## functions
function timer_start() {
global $timestart;
$mtime = explode(' ',microtime());
$timestart = $mtime[1] + $mtime[0];
return true;
}
function timer_stop($display = 0, $precision = 3) {
global $timestart, $timeend;
$mtime = explode(' ',microtime());
$timeend = $mtime[1] + $mtime[0];
$timetotal = $timeend-$timestart;
if ($display)
echo number_format($timetotal,$precision);
return $timetotal;
}
?>