]> git.vanrenterghem.biz Git - www.vanrenterghem.biz.git/blob - phppages/test.php
c46f286c1e4cf516b04719b27a5e525743288939
[www.vanrenterghem.biz.git] / phppages / test.php
1 include("class.myRSS.php");
3 // Instantiate the myRSS class
4 $myRSS = new myRSS;
6 $myRSS->channelTitle = "My sample channel";
7 $myRSS->channelLink = "http://www.mysite.com";
8 $myRSS->channelDesc = "My sample RSS XML channel";
10 $myRSS->imageTitle = "My sample channel";
11 $myRSS->imageLink = "http://www.mysite.com/mylogo.gif";
12 $myRSS->imageURL = "http://www.mysite.com";
14 // Get the RSS data
15 $rssData = $myRSS->GetRSS("localhost", "admin", "password", "rssDB",
16 "myArticles", "title", "summary", "articleId",
17 "http://www.mysite.com/articles/{linkId}/");
19 // Output the generated RSS XML
20 header("Content-type: text/xml");
21 echo $rssData;