]> git.vanrenterghem.biz Git - www.vanrenterghem.biz.git/blob - phppages/rss.php
Baseline
[www.vanrenterghem.biz.git] / phppages / rss.php
1 <?php
2 include("class.myRSS.php");
4 // Instantiate the myRSS class
5 $myRSS = new myRSS;
7 $myRSS->channelTitle = "My personal news";
8 $myRSS->channelLink = "http://frederik.gotdns.org:1976/";
9 $myRSS->channelDesc = "frederik.gotdns.org personal news";
11 $myRSS->imageTitle = "My personal news";
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";
18 // $dbPass="fred";
19 // $dbName="frederik_News";
20 // $tableName="newsContent";
22 // frederik.gotdns.org:1976 database variables
23 $dbServer="localhost";
24 $dbUser="webnews";
25 $dbPass="BlaBla123";
26 $dbName="website";
27 $tableName="newsContent";
29 // Get the RSS data
30 $rssData = $myRSS->GetRSS($dbServer, $dbUser, $dbPass, $dbName,
31 $tableName, "title", "body", "date", "http://vanrenterghem.biz/News/");
33 // Output the generated RSS XML
34 header("Content-type: text/xml");
35 echo $rssData;
36 ?>