Hi guys,
I've been using Yahoo Pipes to create an RSS feed aggregator and wanted to use the pipe's PHP version on my website. The output can be seen here: http://readsfeed.com/test.php
If you look at that output, you'll see this on line 8:
[link] => http://pipes.yahoo.com/pipes/pipe.info?_id=a70c5a49042c25eacfec63355901f6c4
But for the version on my website to be useful to others, the feed's title needs to link back to my site, so that line needs to instead read:
[link] => http://readsfeed.com
Does anyone happen to know how to change one to the other within the following PHP source?
<?php
error_reporting(E_ALL);
// output=php means that the request will return serialized PHP
$request = 'http://pipes.yahoo.com/pipes/pipe.run?_id=a70c5a49042c25eacfec63355901f6c4&_render=php';
$response = file_get_contents($request);
if ($response === false) {
die('Request failed');
}
$phpobj = unserialize($response);
echo '<pre>';
print_r($phpobj);
echo '</pre>';
?>
I've tried different uses of str_replace but have come up empty so far. I've been stumped for a couple week now, so any tips would be enormously appreciated.