Tom’s Garden ShedTom's Garden Shed
252)
{
$item['tipTrim'] = substr($item['tip'], 0, 252) . "...";
}else
{
$item['tipTrim'] = $item['tip'];
}
echo "\n";
echo "{$item['subject']}";
echo "";
echo "$url?entry={$item['id']}";
echo "{$item['tipTrim']}\n";
echo "{$item['tip']}";
echo "{$item['pubDate']}";
echo "{$item['pubDate']}";
echo "\n";
}
echo "";
}
function displayRSS()
{
header("Content-Type: text/xml");
$query = "SELECT id, name, email, title, tip,
DATE_FORMAT(pubDate,'%a, %d %b %Y %T EST') as pubDate
FROM 03_store_tips ORDER BY pubDate";
$tips = getAssoc($query, 2);
?>enTom's Garden Shed, Weekly TipsWeekly gardening tips from TomTom's Feed Generator, v0.01b1440
Notice the content XML namespace, this allows us to include the entire post, not just a summary within the feed. I’ve also included the TTL declaration in this script, aggregators should notice this and refresh the feed only once a week. You could also look into the skipDays and skipHours elements to further define this more clearly.
http://example.preinheimer.com/store/
Tom's Garden Shed
http://example.preinheimer.com/store/
http://example.preinheimer.com/store/tom.png 252)
{
$item['tipTrim'] = substr($item['tip'], 0, 252) . "...";
}else
{
$item['tipTrim'] = $item['tip'];
}
echo "\n";
echo "{$item['title']}\n";
echo "$url?item={$item['id']}\n";
echo "{$item['tipTrim']}\n";
echo "{$item['tip']}";
echo "{$item['email']}\n";
echo "{$item['pubDate']}\n";
echo "\n";
}
echo "\n";
}
?>