Welcome to WebmasterWorld Guest from 18.104.22.168 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
Fail to run RSS Using "Short Guide" by Rincey tomda msg:3065520 10:04 am on Aug 30, 2006 (gmt 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?
tomda msg:3065700 12:22 pm on Aug 30, 2006 (gmt 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.
tomda msg:3087033 6:44 am on Sep 18, 2006 (gmt 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!