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
-1
votes
1 answer

what does exactlly simplepie set_timeout() work?

I want to know what does set_timeout (30) do?! I read document about this from simple pie docs Allows you to override the maximum amount of time spent waiting for the remote feed's server to respond and send the feed back so that we can begin…
-1
votes
1 answer

php if statement to display remove thumbnail

I'm trying to use an if statement so that if the variable isn't set it wil display "noimg.jpg" or no thumbnail, but it isn't doing that at the moment, it's displaying a broken thumbnail. $feed = new…
tom harrison
  • 3,273
  • 11
  • 42
  • 71
-1
votes
1 answer

SimplePie Parsing - Create List From Content

I'm using the RSSSimplePie plugin on CMS Made Simple. The feed I am using is this Tide Times. I would like to display the times and heights as an inline list? At present each item has a br tag so starts on a new line. The template I have is…
Chris
  • 3
  • 3
-1
votes
1 answer

PHP Preg_Match array

I want to remove certain characters in a link. i.e. 'http://www.bbc.co.uk', strip everything and just be left with 'bbd' At the moment i have the following: $filteredFeed[$item->get_title()] = array('title' => $item->get_title(), 'permalink' =>…
Miko
  • 109
  • 1
  • 7
-1
votes
2 answers

how to capture recource link using simplepie parser

Im new to RSS feed parsing and having a little trouble. How would I use simplepie to capture the following resource?
-1
votes
2 answers

(PHP) Pre-defined string to run through one function

I'm currently designing a page, with 20 boxes, where each box represents an RSS feed, using simplepie as my parser. Currently the script calls the first image from each feed, discards the rest and sets that image as the box's background-image. With…
-1
votes
2 answers

Generate div id number for Simplepie RSS items

I'm fetching an RSS feed with Simplepie on a Wordpress blog. Each RSS item has a div container, and I want each one to have a unique id number (something like
). How would I generate a unique number for each item? Here's the code I'm…
-1
votes
1 answer

Take an existing array and brake it up by value

I have a simplepie feed that spits out multiple feeds from each of the URL's that are loaded into a a associative array. This associative array is used to sort the arrays alphabetically using the values. I'm trying to use that same value sort and…
Mic Alexander
  • 93
  • 1
  • 8
-2
votes
1 answer

Echo an Array Key.. how?

Im looking to echo the value of my array key out into the view for this controller. I cant quite figure it out. So for the first feed I want to echo mmafighting into the of the view. Then it would loop through the rest. Here is my controller…
jkphl
  • 181
  • 8
  • 21
-3
votes
1 answer

Simplepie iTunes select specific class

I'm parsing an iTunes feed, there are 3 image sizes within the feed and I'm not sure how to fetch the largest one. The iTunes Feed example: http://a1.image.53x53-50.jpg
illtemper
  • 17
  • 1
  • 4
-4
votes
1 answer

Deprecation error when trying to use SimplePie library in PHP

I am working on news app and i need to parse current news from RSS (Really Simple Syndication). I have found SimplePie library to parse RSS feed easily. First of all i have used this library directly on server with my php code.
Pratik Butani
  • 60,504
  • 58
  • 273
  • 437
1 2 3
19
20