Welcome to WebmasterWorld Guest from 54.145.58.37

Forum Moderators: bill & werty

Message Too Old, No Replies

Fail to run RSS

Using "Short Guide" by Rincey

     
10:04 am on Aug 30, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 7, 2004
posts:929
votes: 0


Short guide available at [webmasterworld.com...]

I thought I would be able to include RSS on my website using the great tutorial from Rincey but it failed.

1/ I have include error_reporting(E_ALL); in my feed.php but get no error message.
2/ When running feed.php, it take some time to parse and when done, I get an empy HTML document.
3/ I have unslashed the print_r($rss) in feed.php but get nothing.
4/ Lastly, a file has been created in the templates_c folder, file compiled from /rssdemo/templates/itemlist.html

Any idea what may be wrong?
Thank you

12:22 pm on Aug 30, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 7, 2004
posts:929
votes: 0


It works now. Sorry for my last message
Problem was due to firewall or connection since the script was working when creating a XML file on the server.

Thanks Rincey!

6:44 am on Sept 18, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 7, 2004
posts:929
votes: 0


One more tip regarding Rincey tutorial [webmasterworld.com...]

You want to force magpierss to input/output UTF, use

define("MAGPIE_OUTPUT_ENCODING", "UTF-8");
define("MAGPIE_INPUT_ENCODING", "UTF-8");
define("MAGPIE_DETECT_ENCODING", false);

But I am still having problems to return a certain number of items. I have used the code given in Magpierss FAQ but it doesn't work

$rss = fetch_rss($url);
$items = array_slice($rss->items, 0, 3);

Any help to limit number of items using Magpiers would be very nice!

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members