View Full Version : magpierss-0.7 install
krawhitham
02-25-2005, 01:31 PM
For some season I can not get magpierss to work on my Root I server
all you need to do is copy the files over and it works
I can get it to work on my local box and my old hosting company
www.4quarters.net is the old host (magpierss allows me to have the sportsline news on they front page)
www.mvplanet.com is the Root I server
here is the URL for the program
http://magpierss.sourceforge.net/
any ideas
krawhitham
02-25-2005, 03:07 PM
same problem with lastRSS
files are identical between servers
OLD SERVER
demo working
http://www.mindwarped.com/test2.php
PHP info
http://www.mindwarped.com/test.php
1and1 ROOT SERVER
same demo not working
http://www.mvplanet.com/test2.php
PHP info
http://www.mvplanet.com/test.php
lastrss home page
http://lastrss.webdot.cz/
eWebtricity
02-26-2005, 12:03 PM
Works for me on this RootIII server
Slashdot RSS
http://www.1and1faq.com/pub/lastrss/slashdot.php
BBC News RSS
http://www.1and1faq.com/pub/lastrss/bbc.php
I just used wget to download the lastrss.zip, unzipped it, and then used their FreshFolder demo template and replaced the RSS url with Slashdot's and BBC's RSS feed url
Here's my slashdot.php
<?php
/*
================================================== ====================
lastRSS usage DEMO 2
----------------------------------------------------------------------
This example shows, how to
- create lastRSS object
- set transparent cache
- get RSS file from URL
- access and show fields of the result
================================================== ====================
*/
// include lastRSS
include "./lastRSS.php";
// Create lastRSS object
$rss = new lastRSS;
// Set cache dir and cache time limit (1200 seconds)
// (don't forget to chmod cahce dir to 777 to allow writing)
$rss->cache_dir = './temp';
$rss->cache_time = 1200;
// Try to load and parse RSS file
if ($rs = $rss->get('http://slashdot.org/index.rss')) {
// Show website logo (if presented)
if ($rs[image_url] != '') {
echo "<a href=\"$rs[image_link]\"><img src=\"$rs[image_url]\" alt=\"$rs[image_title]\" vspace=\"1\" border=\"0\" /></a><br />\n";
}
// Show clickable website title
echo "<big><b><a href=\"$rs[link]\">$rs[title]</a></b></big><br />\n";
// Show website description
echo "$rs[description]<br />\n";
// Show last published articles (title, link, description)
echo "<ul>\n";
foreach($rs['items'] as $item) {
echo "\t<li><a href=\"$item[link]\">".$item['title']."</a><br />".$item['description']."</li>\n";
}
echo "</ul>\n";
}
else {
echo "Error: It's not possible to reach RSS file...\n";
}
?>
krawhitham
02-26-2005, 01:32 PM
ODD
ok I used wget, unziped it, moved the file right folder all in shell
made a PHP using you source and uploaded it via ascii
here is the result
http://mvplanet.com/testthis.php
a blank page
I did the same thin on my old server and it worked like a charm
are using using Red Hat or Fedora Core 2 (Fedora Core 2 here)
I know with magpie it is suppose to output errors if it does not work, all I get with that is also a blank page.
I found a work around for the site using HTML and Iframe but I would really like to figure this out
I have not upgraded anything but mySQL, the server itsself upgraded Plesk to 7.5.2
I'm lost I spend 13 hours messing with it yesterday
eWebtricity
02-26-2005, 01:38 PM
check the access_log and error_log for any HTTP errors when you load the page.
permissions ? chmod 777 * on the test files and rss files
vBulletin® v3.7.0 Beta 4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.