|
Server IP : 127.0.0.1 / Your IP : 127.0.0.1 Web Server : Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.6.3 System : Windows NT WIN-R7LTCC7BPLI 6.3 build 9200 (Windows Server 2012 R2 Datacenter Edition) i586 User : GerbangSIPAD ( 0) PHP Version : 5.6.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF Directory (0777) : C:/xampp5/mailoutput/../contrib/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
header("Content-Type: text/html; charset=utf-8;");
?>
<html>
<head>
<title>PHP und XML_RSS</title>
</head>
<body>
<?php
include_once("XML/RSS.php");
$rss =& new XML_RSS('http://www.heise.de/newsticker/heise.rdf');
$rss->parse();
$meta=$rss->getChannelInfo();
echo "<h1>{$meta['title']}</h1>";
echo $meta['description'];
echo "<br>";
echo "<a href=\"{$meta['link']}\">mehr...</a>";
echo "<p>";
foreach ($rss->getItems() as $item)
{
echo "<a href=\"{$item['link']}\">{$item['title']}</a><br>";
}
?>
</body>
</html>