Jump to content

'Get as PHP' with Yahoo Pipes


sam_h

Recommended Posts

Hi,

 

Just a quick question to anyone who is familiar with Y! Pipes....I am looking to export my pipe as PHP (using the 'get pipe as..' button when you create a pipe)

 

However, I am not sure how to implement the file (which comes as a .run extension) into my PHP page. I was thinking that maybe I should just copy the link location, and call that. But even then I wouldn't be too sure what to do after!

 

Any ideas?

Link to comment
Share on other sites

it's basically just the content on the feed I have created...in text format! So it shows the headings and the content with very little html markup.

 

I did find one post on here related to it, but I tried to change the help that was given to the member according to my own needs but nfortunately it couldn't do it!

 

Here is a link to that thread: http://www.phpfreaks.com/forums/index.php/topic,191123.0.html

 

What I tried to do was simply replace the html source shown in the code from that thread with the html source for my own pipe...I'm learning as I go with PHP and unfortunately that didn't work!!

 

Sam

Link to comment
Share on other sites

ok, so I have managed to get it to this point. However unfortunately this is where my PHP fails me...in terms of styling the output that I get.

 

Here is the code that I placed into my file:

 

<?php

error_reporting(E_ALL);

// output=php means that the request will return serialized PHP
$request =  'http://pipes.yahoo.com/pipes/pipe.run?_id=wO7isSpn3RGPcxwo_w6H4A&_render=php';

$response = file_get_contents($request);

if ($response === false) {
die('Request failed');
}

$phpobj = unserialize($response);

echo '<pre>';
print_r($phpobj);
echo '</pre>';

?>

 

 

And here is the output:

 

http://onyahead.com/news_php.php

 

What I would like to do with this now is display only the title of the articles and then a short description of each. The title needs to be a clickable link.

 

I will continue to try and teach myself what I need to do to achieve this, but if anyone can point me in the right direction, that would be a massive help!

 

Sam

Link to comment
Share on other sites

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.