06-12-2009, 02:12 PM
|
#4 (permalink)
|
|
The Contributor
Join Date: Sep 2008
Posts: 36
Thanks: 2
|
you could most likely print_r($rs) to see what exactly is being set. So like this:
PHP Code:
<?php
function ShowOneRSS($url) {
global $rss;
if ($rs = $rss->get($url)) {
print_r($rs);
}
}
// include lastRSS
include "./lastRSS.php";
$rssall = array('http://applereviews.com/feed/',
'http://www.datacenterknowledge.com/feed/',
'http://feeds.feedburner.com/Woork');
// Create lastRSS object
$rss = new lastRSS;
// Set cache dir and cache time limit (1200 seconds)
// (don't forget to chmod cahce dir to 777 to allow writing)
$rss->cache_dir = './temp';
$rss->cache_time = 1200;
$rss->cp = 'UTF-8';
$rss->items_limit = 5;
foreach ($rssall as $url) {
ShowOneRSS($url);
}
?>
(note: this is a little hacked together, and like before, isnt tested, but it should get you close to what you need to do)
__________________
Jason Corradino
Applications Developer, Interactive Support - Tribune Technology
J2EE Development, Script Tinkering - Develop, Support, and Maintain Tribune websites.
|
|
|
|