I use Yahoo Pipes to get some content using the a serialized PHP:
$request = "http://pipes.yahoo.com/pipes/pipe.run?_id=DsfnOGlK3BGw4DuRJZhxuA&_render=php&search=alias";
$response = file_get_contents($request);
if ($response === false) {
die('Request failed');
}
$phpobj = unserialize($response);
I have a variable ($search) with the results from a form.
And the url should be something like this:
http://pipes.yahoo.com/pipes/pipe.run?id=DsfnOGlK3BGw4DuRJZhxuA&render=php&search=$search
The array I get from Pipes is a Multidimensional Array, like this:
http://pastebin.com/m2a6649b4
What i need is a loop for the "title" and the "link".
With the "link" as a href to the the title.
And I need to change the link from:
http://www.mininova.org/get/1290875
to
http://" . $SESSION["user"] . $SESSION["pass"] . $_SESSION['host'] . "/gui/?action=get-url&s=" . urlencode(http://www.mininova.org/get/1290875)
For example:
http://username:password@192.168.0.1:9999/gui/?action=get-url&s=http%3A%2F%2Fwww.mininova.org%2Fget%2F1290875
I really hope someone can help me with this one 😉