Php 是否可以从我的站点中的其他站点打开RSS提要链接?

Php 是否可以从我的站点中的其他站点打开RSS提要链接?,php,rss,feed,Php,Rss,Feed,我只是在想,是否可以在同一个站点中打开RSS提要显示的其他站点的RSS提要链接 例如: 我从天空体育获得RSS提要,并在我自己的网站上显示图片、标题和链接。。。 当有人点击RSS订阅源的链接时,他们将被指向天空体育的新闻页面。现在,我想知道是否有可能在我自己的网站上打开新闻页面,而不是将用户/读者指向sky的网站 我不知道,但也许用iframe 这是我获取RSS提要的方式: <?php $rss = simplexml_load_file('http://www.fifa.com/rss/

我只是在想,是否可以在同一个站点中打开RSS提要显示的其他站点的RSS提要链接

例如:

我从天空体育获得RSS提要,并在我自己的网站上显示图片、标题和链接。。。 当有人点击RSS订阅源的链接时,他们将被指向天空体育的新闻页面。现在,我想知道是否有可能在我自己的网站上打开新闻页面,而不是将用户/读者指向sky的网站

我不知道,但也许用iframe

这是我获取RSS提要的方式:

<?php
$rss = simplexml_load_file('http://www.fifa.com/rss/index.xml');
$limit = 1; // Change this number to however many items you want to 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 this number to however many items you want to display
$counter = 1;
if($rss)
{
$items = $rss->channel->item;
}
foreach ($rss->channel->item as $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++;
    }
} 
?>

iframe可以做到这一点,或者将链接目标设置为在新窗口中打开。例如,您不能使用jquery.load调用,因为这违反了同源安全策略。