Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Hroi  >  RSS  >  example.php  >  Download  
File: example.php
Role: ???
Content type: text/plain
Description: example of use
Class: RSS
Author: By
Last change:
Date: 13 years ago
Size: 594 bytes
 

Contents

Class file image Download
<?php

require 'rssmulti.php';

$rss = new RSS($file);
if(!$rss->Error) {
	print '<h2><img src="' . $rss->Image['url'] . '" title="' . $rss->Image['title'] . '" alt="' . $rss->Image['description'] . '" />'  . $rss->Channel['title'] . '</h2>';
	print '<h4>' . $rss->Channel['description'] . '</h4>';
	print '<ul>';
	while($rss->next_item()){
		print '<li><a href="' . $rss->Item['link'] . '">' . $rss->Item['title'] . "</a><br /><em>" . $rss->Item['description'] . "</em></li>\n";
	}
	print '</ul>';

} else {
	die('Error in instantiating RSS class: ' . $rss->Error);
}


?>