<?php

include("Reader.php");
$myRSS = new rssReader();

?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="robots" content="index,follow" />
<title>The RSS Demo Page</title>
<link rel="stylesheet" type="text/css" href="http://www.scary-software.com/basic.css" />
<base href="http://www.scary-software.com/" />
</head>
<body>
<div class="wrapper"><span style="color:white; font-size:xx-large">ScarySoftware</span><br />
<span style="color:white; font-size:small">The RSS News Page Demo</span><br />
<div align="right"><div class="topsitenav">
<a href="/" >Home</a>&nbsp;&nbsp;&middot;&nbsp;
<a href="/Store" >Store</a>&nbsp;&nbsp;&middot;&nbsp;
<a href="/Forum" >Forum</a>&nbsp;&nbsp;&middot;&nbsp;
<a href="/Web-Design" >Web Design</a>&nbsp;&nbsp;&middot;&nbsp;
<a href="/News" >News</a>&nbsp;&nbsp;&middot;&nbsp;
<a href="/Software/Software" >Software</a>&nbsp;&nbsp;&middot;&nbsp;
<a href="/Computers/Hardware" >Hardware</a>&nbsp;&nbsp;&middot;&nbsp;
<a href="/Hosting" >Web Hosting</a>&nbsp;&nbsp;&middot;&nbsp;
<a href="/Links" >Links</a>&nbsp;&nbsp;
</div></div>
<table width="100%" class='tableborder' cellspacing="0" cellpadding="6">
<tr>
<td width="400" class='row3' valign="top">
<div>
<table width="100%">
<tr><td>
<center>
<h5>View The Code Samples</h5>
<br/>
Example 1:<br/> 
&nbsp;<a href='http://www.site-reference.com/xml.php?c=all'>Sample RSS File</a><br/><br/>
Example 2:<br/> 
&nbsp;<a href='/RSS/SimpleReader.phps'>The Easy Reader</a><br/><br/>
Example 3:<br/> 
&nbsp;<a href='/RSS/Reader.phps'>The Advanced Reader</a><br/><br/>
Example 4:<br/> 
&nbsp;<a href='/RSS/index.phps'>The Source For This Page</a><br/><br/>
</center>
<br/>
<br/>
<a href="http://affiliates.globat.com/cgi-bin/affiliates/clickthru.cgi?id=jholi"><img src="http://www.scary-software.com/Hosting/size-does-matter_120x600.gif" border=0></a>
<br/>
<br/>
<script type="text/javascript"><!--
ch_client = "jholi";
ch_width = 160;
ch_height = 600;
ch_color_border = "6B91B8";
ch_color_bg = "F5F5F1";
ch_non_contextual = 1;
ch_default_category = "89";
ch_sid = "RSSARTICLE";
var ch_queries = new Array( "digital cameras", "ipod shuffle", "sony playstation", "mp3 players" );
var ch_selected=Math.floor((Math.random()*ch_queries.length));
ch_query = ch_queries[ch_selected];
//--></script>
<script  src="http://scripts.chitika.net/eminimalls/mm.js" type="text/javascript">
</script>
<br/>
<br/>

</td></tr>
</table>
</div>
<br />
<br /></td>
<td width="5" class='row3'>&nbsp;</td>
<td width="90%" class='row3' valign="top">
<!--CONTENT-->
<div class="tableborder">
<div class=""><h1></h1></div>
<div class="tablepad">
<h1>Using PHP and RSS To Generate Content</h1>
<p>You can easily use PHP to generate HTML content from RSS files.  This
page demonstrates the techniques shown in the <a href='http://www.site-reference.com/articles/Website-Development/Quick-and-Easy-Site-Content-with-RSS-and-PHP.html' target='_blank'>Site-Reference Article</a>.
You can use the Simple Reader to generate a <a href='http://www.scary-software.com/RSS/SimpleReader.php?feedid=0' >single page</a> from the 
feed as I've done on this site's <a href='http://www.scary-software.com/News/'>News Page</a>, 
or use the full Reader to Add Multiple Feeds to a single page like you see in this
demo.</p>
<hr>
<h3>News And Discussions From <a href='http://www.sitereference.com' target='_blank'>Site Reference</a></h2>
<?php
$myRSS
->createHtmlFromFeed(0,5);
?>
<hr>
<h3>Top Stories From <a href='http://www.cnn.com' target='_blank'>CNN</a></h2>
<?php
$myRSS
->createHtmlFromFeed(1,3);
?>
<hr>
<h3>Headlines From <a href='http://slashdot.org' target='_blank'>Slashdot</a></h2>
<?php
$myRSS
->createHtmlFromFeed(2,3);
?>
<hr>
<h3>Computer Shopping Information</h2>
<?php
$myRSS
->createHtmlFromRSSUrl("http://search.msn.com/results.aspx?q=computer-buyer.com&format=rss&FORM=RSRE",3);
?>
<hr>


</div>
</div>
<br />
<br />
<!--CONTENT-->


</td>
</tr>
</table>
<br />
<center>
Copyright &copy; 2006 Scary Software - All Rights Reserved<br />
</center>
</div>
</body>
</html>