sam_h Posted September 8, 2008 Share Posted September 8, 2008 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 https://forums.phpfreaks.com/topic/123241-get-as-php-with-yahoo-pipes/ Share on other sites More sharing options...
lemmin Posted September 8, 2008 Share Posted September 8, 2008 What does the content of the file look like if you open with a text editor? Link to comment https://forums.phpfreaks.com/topic/123241-get-as-php-with-yahoo-pipes/#findComment-636625 Share on other sites More sharing options...
sam_h Posted September 8, 2008 Author Share Posted September 8, 2008 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 https://forums.phpfreaks.com/topic/123241-get-as-php-with-yahoo-pipes/#findComment-637054 Share on other sites More sharing options...
sam_h Posted September 10, 2008 Author Share Posted September 10, 2008 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 https://forums.phpfreaks.com/topic/123241-get-as-php-with-yahoo-pipes/#findComment-638414 Share on other sites More sharing options...
sam_h Posted September 25, 2008 Author Share Posted September 25, 2008 has anyone got any ideas regarding this? i am struggling! Link to comment https://forums.phpfreaks.com/topic/123241-get-as-php-with-yahoo-pipes/#findComment-650030 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.