Use PHP to display any RSS feed on your site Sep18 '07

Feedback

# (1 of 6): David Hall » david-hall.info

1 day, 11 hours after the fact. (Thu 20 Sep 2007, 3:57 AM CST)

Hi, I'm trying your method within a TextPattern istallation - therefore between ~ and getting the following error:

Parse error: syntax error, unexpected '<' in /users/home/davidhall/web/public/textpattern/publish/taghandlers.php(2745) : eval()'d code on line 2

Test page is: http://david-hall.info/trial

Probably something I'm doing wrong, but any ideas?

Thanks, David

# (2 of 6): Bonnie

4 months, 3 weeks after the fact. (Wed 06 Feb 2008, 10:08 PM CST)

I'm not too familiar with PHP, just messed around with some real basic stuff. I added your code to my page, but am getting an error - call to undefined function. Is there some other code that needs to be added?

Previous comment Return to entry

# (3 of 6): Memzap

8 months, 1 week after the fact. (Fri 23 May 2008, 7:24 PM CST)

It would be awsome if it worked.

Previous comment Return to entry

# (4 of 6): Jon Konrath » rumored.com

10 months, 1 week after the fact. (Thu 24 Jul 2008, 12:15 PM CST)

If you're having trouble getting this to work with your not-twitter RSS feed, adjust the line foreach ( $xmlObjTwitter -> item as $item )

I had to change it to foreach ( $xmlObjTwitter->channel->item as $item )

Previous comment Return to entry

# (5 of 6): Kyle Benson

1 year, 1 month after the fact. (Fri 24 Oct 2008, 2:40 PM CST)

Thanks you Jon! That worked great.

Previous comment Return to entry

# (6 of 6): Jesper Hills » northproject.net

1 year, 1 month after the fact. (Thu 06 Nov 2008, 6:46 AM CST)

Very helpful, thanks!

Previous comment Return to entry

RSS feed for comments on this post

Leave feedback

Feedback

Input format: The editor controls below will assist with Markdown syntax.

Status

Sub-status

Your info

Return to entry.

matthom is published and produced by Matt Thommes - an independent publishing enthusiast, mobile blogger, content creator, informative writer, web developer from Chicago. Never one to conform, Matt intends to promote the effect the web has on our lives, in an effort to intensify, instruct, and clarify all that is happening around us.

Contact Matt

With PHP 5, it's very easy to include external content onto your site. This tutorial will explain how to display the contents of an RSS feed directly into your site's HTML markup.

You are at the feedback permalink page for: Use PHP to display any RSS feed on your site

Read more...