snippets star schaufler.ch

Feed Aggregator integration

<?php
//yahoo pipes Feed Aggregator ausgabe in php
// Pipes Anfrage 
$req = 'http://pipes.yahoo.com/pipes/pipe.run?_id=82035ab8457be3071e202ab25f088853&_render=php';
// Inhalt in String laden
$phpserialized = file_get_contents($req);
//http://developer.yahoo.com/php/phpserial.html
$phparray = unserialize($phpserialized);
//Ausgabe
//print_r($phparray);
foreach ($phparray['value']['items'] AS $key => $val)
	printf("<p><a href=\"%s\">%s</a><br />%s</p>\n", $val['link'], $val['title'], $val['description']);
?>
Tags: feed, php, pipes, rss von Andy 23-02-2011