I need to change something on this code to read my RSS feeds with image to be displayed. All I see using this code is the source link of an image and text information.
I'm using "Last RSS 0.9.1" as my reader.
Can anyone improvise the ff. code to output image(not only text).
<?php
function cleanUp($inputText) {
$cleanText = trim($inputText);
$cleanText = str_replace('<![CDATA[', '', $cleanText);
$cleanText = str_replace(']]>', '', $cleanText);
$cleanText = htmlspecialchars($cleanText);
return $cleanText;
}
set_time_limit(300);
require('lastRSS.php');
$rss = new lastRSS;
$level = error_reporting();
error_reporting($level & ~(E_NOTICE));
$rss->cache_dir = "";
$rss->cp = "";
if ($rs = $rss->get('http://cssvault.com/gallery.xml')) {
print "n";
for ($i=0; $i<5; $i++) {
print "<br /><b><a href="" . $rs['items'][$i]['link'] . "" target="_blank">" . cleanUp($rs['items'][$i]['title']) . "</a></b><br />". cleanUp($rs['items'][$i]['description']) . "n";
}
print "n";
}
?>
code above only shows tha src link of the image.
thnks in adv.