2 include("class.myRSS.php");
4 // Instantiate the myRSS class
7 $myRSS->channelTitle = "My sample channel";
8 $myRSS->channelLink = "http://www.mysite.com";
9 $myRSS->channelDesc = "My sample RSS XML channel";
11 $myRSS->imageTitle = "My sample channel";
12 $myRSS->imageLink = "http://www.mysite.com/mylogo.gif";
13 $myRSS->imageURL = "http://www.mysite.com";
15 // vanrenterghem.biz database variables
16 // $dbServer="localhost";
17 // $dbUser="frederik_fred";
19 // $dbName="frederik_News";
20 // $tableName="newsContent";
22 // frederik.gotdns.org:1976 database variables
23 $dbServer="localhost";
27 $tableName="newsContent";
30 $rssData = $myRSS->GetRSS($dbServer, $dbUser, $dbPass, $dbName,
31 $tableName, "title", "body", "date", "http://www.mysite.com/articles/{linkId}/");
33 // Output the generated RSS XML
34 header("Content-type: text/xml");