Location: PHPKode > scripts > BNC Free PHP Rss Rarser > php-rss-parser/php-rss-parser/install.html
<title>Installation Instructions</title>
div.content_center{width:710px !important;width:712px;border:1px solid  #e1e0de;background-color: #fff;}
div.content{padding: 20px 20px 20px 20px;color:#797C80;font-family:arial;font-size:12px;}
div.general_text{padding: 12px;font-family:arial;font-size:12px;color:#797C80;}

border:1px solid #E1E0DE;}
h4 {color:#CC0000; font-size:15px;}
<body style="background-color:#f4f3f0; text-align:center;">
<div style="margin:0 auto; width:720px; text-align:left; margin-top: 30px;margin-bottom: 30px;">


    <div class="content_center">
        <div class="content">
			<h1>Installation Instructions - <a href="http://bncscripts.com/free-php-rss-parser/?utm_campaign=free-parser-install">Free Rss Parser</a></h1>
			<p>If you have installation questions or need help troubleshooting our scripts email us - <b>hide@address.com</b>.<br> The steps which you must follow in order to complete the script installation are:</p>	
		    <h3 id="h3_step">1 - Open index.php and update it</h3>           
            <div class="general_text">
             <h4>Type the feed</h4>			 
			 <h3 id="h3_step">2 - Upload the files</h3>           
            <div class="general_text">
			<p>Upload the package on your hosting account through your <strong>cPanel -> File Manager</strong> or using an <strong>FTP</strong> client.<br>				
	<h3 id="h3_step">Congratulations! You have done a wonderful job!</h3>           
            <div class="general_text">
			<h4>How to use on other page</h4>
			<p>You must include bncscripts_rss.php in your page. Just type the following code in your php page.</p>
			<code>&lt;?php include 'bncscripts_rss.php'; ?&gt;</code>			
			Use your own format. The variables available are<br><br>
			<b>$rss->Item['link']</b> - the link of one item<br>
			<b>$rss->Item['title']</b> - the title of one item<br>
			<b>$rss->Item['description']</b> - the description (here is the content)<br>			
			<h4>Sample code</h4>
			<textarea cols="76" rows="16">$rss = new BncRSS($feed);

echo '<ul>';	

echo '<li><b><a href="' . $rss->Item['link'] . '">' . $rss->Item['title'] . "</a></b><br/><em>" . $rss->Item['description'] . "</em></li>\n";

echo '</ul>';

else {die('Error :' . $rss->Error);}</textarea>
			<h4>The output will be:</h4>
			<textarea cols="76" rows="8"><ul>
<li><b><a href="LINK_1">TITLE_1</a></b><br/><em>DESCRIPTION_1</em></li>
<li><b><a href="LINK_2">TITLE_2</a></b><br/><em>DESCRIPTION_2</em></li>
			 <h3 id="h3_step">If you need something more advanced but easier to use check out <br/><br/><a href="http://bncscripts.com/php-rss-parser-bnc-advanced-feed-parser/?utm_campaign=advanced-parser-install" target="_blank">BNC Advanced Feed Parser</a><br/></h3>  
	        <h3 id="h3_step">More about BNC Advanced Feed Parser</h3>           
            <div class="general_text">
			 <ul id="ul_features">
<li><b style="color: rgb(204, 0, 0);">Auto Detect RSS feed type</b> Supports RSS 0.90, RSS 0.91, RSS 0.92, RSS 1.0, RSS 2.0 and Atom 1.0</li>
<li><b style="color: rgb(204, 0, 0);">Easy-to-use Script</b>
With a single line of code you can display the feed inside your webpage.</li>
<li><b style="color: rgb(204, 0, 0);">Template-based Script</b>
BNC Advanced Feed Parser provides complete freedom in changing your look and feel easily. Also you can create and use your own templates. So you can set different templates for each feed. No coding required means that you will not have to spend hours learning, executing, and troubleshooting messy code. <strong>Especially nice for non programmers</strong> - HTML code is separated from PHP and there is only simple and clear code.</li>
<li><b style="color: rgb(204, 0, 0);">Cache System Implemented</b>
BNC Advanced Feed Parser comes with a robust cache system that will Reduce Server Load and Save Bandwidth. Use of cache system increases speed of work. You can active/deactivate from settings.php</li>


			 <h3 id="h3_step">How to make a template</h3>           
            <div class="general_text">
			<p>You can make unlimited templates. Each template <b>must be saved with .tpl extension</b> and uploaded to templates folder</p><p>Variables are referenced by enclosing them within {}. Using these variables you can create your own templates - you can use html code</p>
			 <h4>Available Variables</h4>
			<h4>Sample template</h4>
			<p>This is default template which is found in templates folder. Each item from the feed will have this format.</p>
			&lt;h3&gt;&lt;a href=&quot;{ITEM_LINK}&quot;&gt;{ITEM_TITLE}&lt;/a&gt;&lt;/h3&gt; <br>
&lt;p class=&quot;date&quot;&gt;Posted on: {ITEM_DATE}&lt;/p&gt;<br>
&lt;p class=&quot;description&quot;&gt;{ITEM_DESCRIPTION} &lt;a href=&quot;{ITEM_LINK}&quot;&gt;read more ...&lt;/a&gt;&lt;/p&gt;	 
			 <p>{ITEM_CATEGORIES} and {ITEM_CONTRIBUTORS} will display the categories and the contributors. In settings.php you can change the string that will appear between them. The default value is comma ' , '</p>
 &lt;p&gt;{ITEM_CATEGORIES}&lt;/p&gt; using define('TEMPLATE_SEPARE_THE_CATEGORIES', '<b>, </b>'); in settings.php will display  <br>
			 &lt;p&gt;Category1, Category2, Category3&lt;/p&gt;<br><br>	
&lt;p&gt;&lt;u&gt;{ITEM_CATEGORIES}&lt;/u&gt;&lt;/p&gt;  using <br>define('TEMPLATE_SEPARE_THE_CATEGORIES', '<b>&lt;/u&gt; , &lt;u&gt;</b>'); in settings.php will render the following html code<br>
&lt;p&gt;&lt;u&gt;Category1&lt;/u&gt; ,&lt;u&gt;Category2&lt;/u&gt; , &lt;u&gt;Category3&lt;/u&gt;&lt;/p&gt;	 
				 <h3 id="h3_step">How to use</h3>           
            <div class="general_text">			
			<p>Just type the following code in your php page.</p>
			<code>&lt;?php error_reporting(0); include 'http://yourdomain.com/<b>SCRIPT_FOLDER</b>/includebnc.php'; BNC_ADVANCED_RSS_PARSER('<b>YOUR FEED</b>','<b>TEMPLATE</b>',<b>NUMBER OF ITEMS TO SHOW</b>); ?&gt;</code>
			<b>SCRIPT_FOLDER</b> - the location where the script is uploaded<br>
			<b>YOUR FEED</b> - the url of the feed you want to fetch<br>
			<b>TEMPLATE</b> - the name of the template<br>
			<b>NUMBER OF ITEMS TO SHOW</b> - how many items you want to be displayed
			<h4>Sample code</h4>
			<textarea cols="76" rows="3">&lt;?php error_reporting(0); include 'http://yourdomain.com/bncRSS/includebnc.php'; BNC_ADVANCED_RSS_PARSER('http://rss.cnn.com/rss/edition.rss','default',2); ?&gt;</textarea>

Return current item: BNC Free PHP Rss Rarser