Giter VIP home page Giter VIP logo

magpierss's Introduction

MagpieRSS - a simple RSS integration tool

Probably the most popular PHP RSS parser, ever. Released in 2002, roughly 500k direct downloads, plus uncounted downloads as part of open source projects like Wordpress.

Additionally this code was written when PHP 4.1.2 was the state of the art, and it shows.

USAGE

require_once(rss_fetch.inc);
$url = $_GET['url'];
$rss = fetch_rss( $url );

echo "Channel Title: " . $rss->channel['title'] . "<p>";
echo "<ul>";
foreach ($rss->items as $item) {
	$href = $item['link'];
	$title = $item['title'];
	echo "<li><a href=$href>$title</a></li>";
}
echo "</ul>";

DESCRIPTION

MapieRSS is an XML-based RSS parser in PHP.  It attempts to be "PHP-like",
and simple to use.

Some features include:

* supports RSS 0.9 - 1.0, with limited RSS 2.0 support
* supports namespaces, and modules, including mod_content and mod_event
* open minded [1]
* simple, functional interface, to object oriented backend parser
* automatic caching of parsed RSS objects makes its easy to integrate
* supports conditional GET with Last-Modified, and ETag
* uses constants for easy override of default behaviour 
* heavily commented
  1. By open minded I mean Magpie will accept any tag it finds in good faith that it was supposed to be here. For strict validation, look elsewhere.

GETTING STARTED

COPYRIGHT:

Copyright(c) 2002 [email protected]. All rights reserved.
This software is released under the GNU General Public License.
Please read the disclaimer at the top of the Snoopy.class.inc file.

magpierss's People

Contributors

asnight avatar kellan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

magpierss's Issues

Trying to get in touch with you regarding a security issue

Hi there,

I couldn't find a SECURITY.md in your repository and so am not sure how to best contact you privately to disclose the security issue.

Can you add a SECURITY.md file with your e-mail to your repository, so that I know who to contact? GitHub suggests that a security policy is the best way to make sure security issues are responsibly disclosed.

Once you've done that, please let me know so I can ping you the info.

Thanks!

split() method deprecated as of PHP 5.3.0, failing rss_parse.inc

I just resolved an issue which was totally breaking my RSS reader page:
the split() method is deprecated as of PHP 5.3.0 (https://www.php.net/manual/ro/function.split.php#:~:text=split()%20is%20deprecated%20as,of%20the%20regular%20expression%20engine.); which produces an error in the file 'rss_parse.inc' (which would show up in the browser console as a generic 500 error when trying to read a specific RSS feed - although the error_log file stored on the server would contain the detailed error description).
the solution is to just replace:
list($ns, $el) = split( ':', $element, 2);
with
list($ns, $el) = explode( ':', $element, 2);

EDIT: oops, just saw that the file was edited years ago in this repo on git; I made the comment in reference to the project archive I checked on sourceforge: https://sourceforge.net/projects/magpierss/ - perhaps you want to update it there as well

Outdated Client and Https Issue

The library doesn't seems to be updated, the client "Snoopy" has already been updated but library is still using the old version. Also library doesn't seems to be fetching "https" feeds, is it http only library?

Can we have a update now?? For http it works very well.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.