]> git.vanrenterghem.biz Git - www.vanrenterghem.biz.git/blob - phppages/rss.php~
d8a4b5c37c366774918ca114659c181fb749de3e
[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 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";
18 // $dbPass="fred";
19 // $dbName="frederik_News";
20 // $tableName="newsContent";
22 // frederik.gotdns.org:1976 database variables
23 $dbServer="localhost";
24 $dbUser="frederik";
25 $dbPass="Fred1210";
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://www.mysite.com/articles/{linkId}/");
33 // Output the generated RSS XML
34 header("Content-type: text/xml");
35 echo $rssData;
36 ?>