RSS_PHP; RSS 2.0 Parser Test Results

RSS_PHP is a free RSS Parser for PHP 5+ - the full introduction is available on the main RSS_PHP Parser page.

Really Simple Syndication (RSS) 2.0 Test

This test of the RSS_PHP RSS Parser uses the sample RSS 2.0 file hosted at Harvard Law. As with all tests on rssphp.net, this a live test.

The RSS_PHP Test File

<?php
require_once '../../rss_php.php';

    $rss = new rss_php;

    $rss->load('http://cyber.law.harvard.edu/rss/examples/rss2sample.xml');

    print_r($rss->query('*/lastBuildDate')); #get the last build date of the feed
    
print_r($rss->getRSS()); #print all rss without attributes
        
?>

RSS 2.0 Results

These results are generated by the including the above test file.

Array
(
    [lastBuildDate] => Tue, 10 Jun 2003 09:41:01 GMT
)
Array
(
    [rss] => Array
        (
            [channel] => Array
                (
                    [title] => Liftoff News
                    [link] => http://liftoff.msfc.nasa.gov/
                    [description] => Liftoff to Space Exploration.
                    [language] => en-us
                    [pubDate] => Tue, 10 Jun 2003 04:00:00 GMT
                    [lastBuildDate] => Tue, 10 Jun 2003 09:41:01 GMT
                    [docs] => http://blogs.law.harvard.edu/tech/rss
                    [generator] => Weblog Editor 2.0
                    [managingEditor] => editor@example.com
                    [webMaster] => webmaster@example.com
                    [item:0] => Array
                        (
                            [title] => Star City
                            [link] => http://liftoff.msfc.nasa.gov/news/2003/news-starcity.asp
                            [description] => How do Americans get ready to work with Russians aboard the International Space Station? They take a crash course in culture, language and protocol at Russia's Star City.
                            [pubDate] => Tue, 03 Jun 2003 09:39:21 GMT
                            [guid] => http://liftoff.msfc.nasa.gov/2003/06/03.html#item573
                        )

                    [item:1] => Array
                        (
                            [description] => Sky watchers in Europe, Asia, and parts of Alaska and Canada will experience a partial eclipse of the Sun on Saturday, May 31st.
                            [pubDate] => Fri, 30 May 2003 11:06:42 GMT
                            [guid] => http://liftoff.msfc.nasa.gov/2003/05/30.html#item572
                        )

                    [item:2] => Array
                        (
                            [title] => The Engine That Does More
                            [link] => http://liftoff.msfc.nasa.gov/news/2003/news-VASIMR.asp
                            [description] => Before man travels to Mars, NASA hopes to design new engines that will let us fly through the Solar System more quickly.  The proposed VASIMR engine would do that.
                            [pubDate] => Tue, 27 May 2003 08:37:32 GMT
                            [guid] => http://liftoff.msfc.nasa.gov/2003/05/27.html#item571
                        )

                    [item:3] => Array
                        (
                            [title] => Astronauts' Dirty Laundry
                            [link] => http://liftoff.msfc.nasa.gov/news/2003/news-laundry.asp
                            [description] => Compared to earlier spacecraft, the International Space Station has many luxuries, but laundry facilities are not one of them.  Instead, astronauts have other options.
                            [pubDate] => Tue, 20 May 2003 08:56:02 GMT
                            [guid] => http://liftoff.msfc.nasa.gov/2003/05/20.html#item570
                        )

                )

        )

)
		

Other Supported Versions of RSS supported by RSS_PHP

RSS_PHP works with all versions of RSS, including related modules, attributes and extensions, currently tested and verified against:

Full documentation and examples of RSS_PHP are available on the site, and you can download the latest version of RSS_PHP for use in your PHP applications for free.

Valid XHTML 1.0 Strict

return to the top of the page