Ok, So I've been trying to use RSS with PHP Nuke (i'd post to their website, but they never seem to allow a question to be posted from me.. anyway). A friend of mine is using greymatter and I found a RSS script for greymatter and I rewrote it to work a bit better and had him put it up on his site.
http://www.mysecondchoice.com/backend.php
Well.. I cant add it do Php Nuke, it tells me there is a problem with the content on this site. So, I edit the source and force it to display anyway... and it shows nothing ? I view the url, and it looks perfectly fine. I look at phpnuke.org/backend.php and they're identical. (minus content) I am also unable to add my site as content, but I have found other php nuke sites that I can add.
Here is the source to the php file I rewrote.. (it didnt work before i rewrote it eithier... )
<?php
// Path to gm-entrylist.cgi
$entryList = '../cgi-bin/gm-entrylist.cgi';
// Extension of archive files
$archiveExtension = '.htm';
// Full URL of archives folder
$archiveURL = 'http://www.mysecondchoice.com/archives/';
// Full URL of weblog
$url = 'http://www.mysecondchoice.com/index.htm';
// Title of weblog
$title = 'mysecondchoice';
// Description of weblog
$description = 'where second place is good enough';
// Maximum number of entries to include in RSS file
$maxEntries = 10;
// Local time offset from server
$offset = 0;
// Local time zone
$zone = 'EST';
header("Content-Type: text/xml");
// Define the first part of the XML file
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n\n";
echo "<!DOCTYPE rss PUBLIC \"-//Netscape Communications//DTD RSS 0.91//EN\"\n";
echo " \"http://my.netscape.com/publish/formats/rss-0.91.dtd\">\n\n";
echo "<rss version=\"0.91\">\n\n";
echo "<channel>\n";
echo "<title>$title</title>\n";
echo "<link>$url</link>\n";
echo "<description>$description</description>\n";
echo "<language>en-us</language>\n\n";
$entries = file($entryList);
for ($i = 0; $i < $maxEntries; $i++) {
if (isset($entries[$i])) {
$entry = explode("|", $entries[$i]);
if ($entry[5] <> 'C') {
$entryTitle = $entry[2];
$entryFilename = sprintf("%08d", $entry[0]);
echo "\t\t<item>\n";
echo "\t\t\t<title>$entryTitle</title>\n";
echo "\t\t\t<link>$archiveURL$entryFilename$archiveExtension</link>\n";
echo "\t\t</item>\n";
} else {
array_splice($entries, $i, 1);
$i--;
}
} else {
break;
}
}
echo "\t</channel>\n";
echo "</rss>\n";
?>