Questions tagged [simplepie]

SimplePie is a PHP library intended to make it ridiculously easy for people to manage RSS and Atom feeds.

SimplePie is:

  • A code library, written in PHP, intended to make it ridiculously easy for people to manage RSS and Atom feeds.

  • An easy to use API that handles all of the dirty work when it comes to fetching, caching, parsing, normalizing data structures between RSS and Atom formats, handling character encoding translation, and sanitizing the resulting data.

  • Free (i.e. no cost) open-source software, with a license more liberal than the GPL (BSD-licensed), that was built and improved over the course of years by people who have a passion for good software that makes people's lives easier.

  • Well documented with a complete API reference, tutorials and screencasts for popularly requested uses, and details about the inner workings of the library.

  • Always looking for more people to contribute to the project in terms of code, patches, support, and evangelism.

  • A solution where we've worked very hard to keep the bar as low as possible for people who want to use it, but at the same time you MUST have a fundamental grasp of the PHP language. If you don't know PHP, and are interested in getting a handle on the basics, we recommend PHP 101: PHP For the Absolute Beginner (begin with parts 1-3, then move onto parts 4-7 making sure you actually understand them).

SimplePie is not:

  • A magical solution that will just "do it for you."

  • A copy-paste, "no code required" solution.

  • A full-blown feed aggregator like Google Reader, NewsGator Online, Bloglines, and the like.

If you don't know PHP, or are not willing to learn PHP, SimplePie is not the right solution for you.

However, SimplePie integrates well with a variety of blogging systems, wikis, forums, and code frameworks. Many of these third-party software packages are more end-user focused, and require less (if any) actual programming. Check out our SimplePie Plugins and Integration page to see if SimplePie integrates with software you already use, in a way that doesn't require much programming (if at all).

296 questions
2
votes
2 answers

How can I pull media:thumbnail from an RSS feed with SimplePie and fetch_feed()?

I have two separate WordPress installs – I will call one Site A, and the other Site B. I want to pull the feed from Site B onto Site A, using fetch_feed(). I also want to include a thumbnail image. WordPress doesn't include a thumbnail in the feed…
Ryan
  • 2,433
  • 5
  • 31
  • 41
2
votes
3 answers

RSS WordPress SimplePie claiming valid URL as invalid

I'm trying to load a RSS feed with Wordpress's built-in SimplePie. include_once(ABSPATH . WPINC . '/feed.php'); $rssURL = 'http://missionstkitts.blogspot.com//feeds/posts/default'; $rss = fetch_feed($rssURL); To debug, I used print_r($rss); and I…
2
votes
1 answer

SimplePie Getting an invalid XML document

I am using a very cool php library(whatever it is called) called SimplePie. I am using the latest version. I have this code: $url =…
PinoyStackOverflower
  • 5,214
  • 18
  • 63
  • 126
2
votes
1 answer

Fetching, Detecting Changes in RSS feed

Currently an application I made in PHP/Codeigniter uses the SimplePie library to parse feeds. There is one main external feed it fetches that it checks every 5 mins for new items using a cron job. For one off feed fetches it is okay to just run a…
viperfx
  • 327
  • 5
  • 17
2
votes
1 answer

How do I fix simplepie? failed to open stream: No such file or directory

I am trying to pull in some posts from a remote wordpress site with simplepie. I have installed the library and put what I think is the right code at the top of the .php page. Right now my it looks…
mkob
  • 55
  • 1
  • 7
2
votes
1 answer

Custom Sort Order with SimplePie

Using SimplePie, how can I sort items by random order and title (alphabetic)? According to this page (http://simplepie.org/wiki/tutorial/sorting_by_custom_criteria_instead_of_date), the documentation says to extend the class and write your own…
Teno
  • 2,582
  • 4
  • 35
  • 57
2
votes
1 answer

How to remove duplicate posts from Simplepie (Multiple) feeds

I have multiple branch sites that feed their RSS news feeds to one main site using Simplepie. This works great. The only problem is, sometimes multiple branches post the same news article and that in turn displays multiples news articles on the main…
2
votes
2 answers

specifying simplepie cache location?

Ehrm. I know this seems simple (as pie, har har), but I keep getting a Warning: /cache/ is not writeable. Make sure you've set the correct relative or absolute path, and that the location is server-writable. Here is my situation. I have…
PaulHanak
  • 729
  • 2
  • 9
  • 21
2
votes
1 answer

Memory leak in SimplePie with a really large feed. How to fight this?

I'm trying to parse this RSS feed with SimplePie: http://www.merdekapost.com/feeds/posts/default And it creates a memory leak because the feed is huge. It's over 4 Mb and when SimplePie tries to parse XML it just fills all available RAM. The thing…
Andrii S
  • 41
  • 1
  • 6
1
vote
1 answer

SimplePie and fetching multiple feeds from blogspot.com

I've been doing a lot of work with SimplePie the last few days and I've noticed it doesn't always treat Blogger feeds the same. If I pass a Blogger feed to SimplePie like this http://davetaylorminiatures.blogspot.com/ or…
Muskie
  • 577
  • 3
  • 21
1
vote
1 answer

Simplepie: How to display full blog post?

Sample Post: http://oi43.tinypic.com/huq3o6.jpg Using the $item->get_description() function - I am only getting a part of the blog posts description. It truncates after 50-60 words. How do I get the full post? Any help is greatly appreciated.
mkdub
  • 13
  • 2
1
vote
1 answer

Bundle RSS in emails

I've been using the following code to pull in Google news, however, I need to have the final result on the web site be an actual rss feed so others can grab the feed. Right now the output creates a nice index.php page. That's great, but doesn't…
Lester Kahn
  • 31
  • 1
  • 1
  • 4
1
vote
1 answer

Does SimplePie automatically remove invalid images and links?

I am working on a web application and want to use SimplePie for parsing a lot of RSS feeds. One problem is that I want to know if SimplePie automatically removes all the dead links while parsing RSS feeds. So that the final output of the RSS feed…
Deepak
  • 370
  • 2
  • 4
  • 12
1
vote
1 answer

Change in APC for Magento stops SimplePie from working

We have been using SimplePie on our Magento install to pull our blog posts into our home page without issue for several months now. Due to some other issues with Magento, we had our web host turn off opcode in APC. Once we did that, the next hourly…
Greg Demetrick
  • 759
  • 1
  • 12
  • 28
1
vote
1 answer

Keeping links in SimplePie description

I am using SimplePie to feed blog entries to a non-Wordpress website. By default it strips out all HTML tags, but there is a way to keep them in, by inserting this code near the top of your page:…
user1130575
  • 21
  • 1
  • 2