PDA

View Full Version : Technical Q..


gigiloumill
03-21-2011, 03:04 PM
Good morning: guys, does any one know what I need to ad to this code in order to make images into thumbnails..Thanks<?php

require_once('rss_fetch.inc');

// how many feeds?
$num_items = 5;
// RSS feed
$rss = fetch_rss( 'http://lamega.lamusica.com/feed/' );
$aString = is_string((string)array()) ? true : false; // true :D
if($rss) {
$items = array_slice($rss->items, 0, $num_items);

echo "<ul>";

foreach ($items as $item) {

$href = $item['link'];
$title = $item['title'];
$description=$item ['description'];

echo "<li><a href=\"$href\" rel=\"nofollow\">$title,</a></li>";
echo "<li><a href=\"$href\" rel=\"_blank\">$description,</a></li>";

}
echo "</ul>";
} else {
echo "<p>Feed currently updating. Please check back soon.</p>";
}
?>

edbr
03-22-2011, 02:07 AM
use a class perhaps. like this one http://www.zubrag.com/scripts/thumbnail-generator.php

davidj
03-22-2011, 01:26 PM
I suggest also that you use .php extension in your include files rather than .inc

This will protect the file from being downloaded if the file name is known