cotonti.com : Import XML feed https://www.cotonti.com Последние сообщения в теме Cotonti en Sun, 30 Nov 2025 00:35:51 -0000 vice
echo '<div id="main"><div align="justify">'; 
//point to an xml file
$feed = "http://www.opennet.ru/opennews/opennews_mini_full.rss";
//create object
$sxml = simplexml_load_file($feed);
echo "<center><h2> ГОРЯЧИЕ НОВОСТИ. ПОДРОБНО. 
</h2></center>
<img align=left src=https://www.cotonti.com/skins/ice/img/cofcup.jpg > 
 <br><br>";
//echo "<h2>{$sxml->channel->title}</h2>\n";
$i = 1;
foreach ($sxml->channel->item as $item){
$strtemp = "<font color=blue>$item->title</font><br>$item->description<br>";
$strtemp = iconv("utf-8", "windows-1251", $strtemp);  
$strtemp = strip_tags($strtemp, '<p><br><font>');
$newtext = ereg_replace("([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])|Источник:","",$strtemp);
echo $newtext;
echo '<center><img src=https://www.cotonti.com/skins/ice/img/cup.png>&nbsp
<img src=https://www.cotonti.com/skins/ice/img/cup.png>&nbsp
<img src=https://www.cotonti.com/skins/ice/img/cup.png>
</center><br>';
$i++;
if ($i > 5) break;  
} 
echo '</div></div>';

An example of how it looks http://linux.povorotka.org.ua/plug.php?e=feed]]>
вс, 14 ноя 2010 16:42:04 -0000
Twiebie
I thought maybe there was a simple option in Cotonti.]]>
сб, 06 ноя 2010 07:41:14 -0000
Kaan http://neocrome.net/forums.php?m=posts&p=132464#132464

The solution has a name - RSS reader. Download it here:
http://www.neocrome.net/datas/users/5280-plug-rssreader.rar]]>
сб, 06 ноя 2010 07:30:28 -0000
Kort
Demo: http://sandbox.seditio.by/]]>
сб, 06 ноя 2010 03:46:59 -0000
Twiebie
I tried using: include:http://www.xmlfeedurl.com/feed.xml but that wont work because it's trying to import a page from a folder on the server.

Thanks in advance.]]>
сб, 06 ноя 2010 02:15:53 -0000