include("class.myRSS.php");

// Instantiate the myRSS class
$myRSS = new myRSS;

$myRSS->channelTitle = "My sample channel";
$myRSS->channelLink = "http://www.mysite.com";
$myRSS->channelDesc = "My sample RSS XML channel";

$myRSS->imageTitle = "My sample channel";
$myRSS->imageLink = "http://www.mysite.com/mylogo.gif";
$myRSS->imageURL = "http://www.mysite.com";

// Get the RSS data
$rssData = $myRSS->GetRSS("localhost", "admin", "password", "rssDB",
"myArticles", "title", "summary", "articleId",
"http://www.mysite.com/articles/{linkId}/");

// Output the generated RSS XML
header("Content-type: text/xml");
echo $rssData;