1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
|
<?
$content = join ('', file ('http://www.bb.ups-site.de/rss.php'));
$content = str_replace ("</item>", "", $content);
$content = str_replace ("</link>", "", $content);
$content = str_replace ("</title>", "", $content);
$split = explode ("\n", $content);
$output = array_slice ($split, 10, -2);
foreach($output as $key => $value)
{
if(substr_count($value, "<pubDate>"))
{
unset($output[$key]);
}
if(substr_count($value, "<description>"))
{
unset($output[$key]);
}
if(substr_count($value, "<item>"))
{
unset($output[$key]);
}
}
$bla = join ("", $output); echo $bla;
?> |