php - is it possible to open RSS feed links from other sites within my site? -


i wandering if possible open rss feed link other sites within same site rss feed displayed on?

for example:

i rss feed sky sport , display images, title , link on own website... when clicks on link rss feed, pointed sky sport page news. now, wandering if possible open news page within own site instead of pointing users/readers sky's website?

i don't know maybe using iframe?

this how rss feed:

<?php $rss = simplexml_load_file('http://www.fifa.com/rss/index.xml'); $limit = 1; // change number many items want display $counter = 1; if($rss) { $items = $rss->channel->item; } ?>  <?php $rss = simplexml_load_file('http://www.skysports.com/rss/0,20514,12010,00.xml'); $limit = 1; // change number many items want display $counter = 1; if($rss) { $items = $rss->channel->item; } foreach ($rss->channel->item $item) {     if($counter <= $limit) {   echo "<div style='border: solid #0c0 1px; width:150px; height:100px;'><img src=\"" . (string)$item->enclosure['url'][0] . "\" style='width:150px; height:100px;'></div>";    echo "<p>" . $item->description . "</p>";     $counter++;     } }  ?> 


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -