jbbion.blogg.se

Rss reader php class
Rss reader php class











rss reader php class

Subscribe to magpierss-general and ask your question.Page, to see if an existing solutions work for you. Attempt to auto-detect an RSS feed, given a URL following, much like rssfinder.pydoes.Improve support for modules that rely on attributes Improve RSS 2.0 support, in all its wacky permutations (as much as I'm annoyed by it) Swap in a smarter parser that includes optional support for validation, and required fields. More soon.in the meantime you can check out a cool tool built with MagpieRSS, version 0.1. Image and textinput $rss->image and $rss-textinput are associative arrays including name-value pairs for anything found between the respective parent tags. Is parsed, and pushed on the $rss->items array as: Items $rss->items is an array of associative arrays, each one describing a single item. Magpie parses a RSS feed into a simple object, with 4 fields: channel, items, image, and textinput.Ĭhannel $rss->channel contains key-value pairs of all tags, without nested tags, found between the root tag (, or ) and the end of the document. This makes it very simple support the varied versions of RSS simply, but forces the consumer of a RSS feed to be cognizant of how it is structured.(at least if you want to do something fancy) Absolutely non-validating, as long as the RSS feed is well formed, Magpie will cheerfully parse new, and never before seen tags in your RSS feeds. Magpie takes a naive, and inclusive approach. Does not use fopen(), work even if allow_url_fopen is disabled.Bandwidth friendly - supports transparent GZIP encoding to reduce bandwidth usage.Secure - supports HTTP authentication, and SSL.currently provides parse_w3cdtf(), for parsing W3CDTF into epoch seconds. rss_utils.inc - utility functions for working with RSS.rss_cache.inc - a simple (no GC) object cache, optimized for RSS objects.rss_parse.inc - provides the RSS parser, and the RSS object.rss_fetch.inc - wraps a simple interface ( fetch_rss()) around the library.Configurable Makes extensive use of constants to allow overriding default behaviour, and installation on shared hosts.

RSS READER PHP CLASS DOWNLOAD

  • HTTP Conditional GETs Save bandwidth and speed up download times with intelligent use of Last-Modified and ETag.
  • Integrated Object Cache Caching the parsed RSS means that the 2nd request is fast, and that including the rss_fetch call in your PHP page won't destroy your performance, and force you to reply on an external cron job.
  • RSS is packed into convenient data structures easy to use in PHP, and appropriate for passing to a templating system, like Smarty.
  • Parses RSS 0.9 - RSS 1.0 Parses most RSS formats, including support for 1.0 modules and limited namespace support.
  • In particular I failed to find any PHP RSS parsers that could sufficiently parse RSS 1.0 feeds, to be useful on the RSS based event feeds we generate at. Not build proper separation between parsing the RSS and displaying it. Use a parser based on regular expressions, making for an inherently fragile solutionĭiscard all the interesting information besides item title, description, and link. In particular many of the existing PHP solutions seemed to: I wrote MagpieRSS out of a frustration with the limitations of existing solutions.

    rss reader php class

    supports transparent HTTP gzip content negotiation for reduced bandwidth usage.server based PHP RSS aggregator built with MagpieRSS.fixes silent failure when PHP is built without zlib support.Thanks go to Scott, and Phil for bug reports, and especially to Steve for amazing debugging work.Improved socket handling in HTTP library.MagpieRSS 0.52 Now Compatible with PHP 4.3.2.

    rss reader php class

    MagpieRSS links is a partial list of all the cool stuff people have done with Magpie.Two new sources of MagpieRSS information:.Adds experimental parsing support for Atom.The Magpie Blog has been revived and is the place for Magpie news and howtos.Magpie links page has been rebuilt, and is now driven by.Excited to announce that AOE media, a TYPO3 & Open Source provider from Germany has recently agreed to provide continues sponsoring for MagpieRSS.













    Rss reader php class