View Full Version : Can't get the rss feed viewer to work

3 Jan 2007, 4:56 AM
Hello Jack,

First of all I would like to express my great appreciation to your work. You actually do wonders! :)

I am tring to play around with the RSS feed viewer example, but It just doesn't work. Instead of showing the feeds, I see a blank white space in the view pane, and a blank blue space (without the buttons) in the preview area.

It does work on my local machine, but not on my hosted web site.

I would really appreciate your help.

Thank you.

3 Jan 2007, 10:03 AM
Are you sure you don't have a path issue for the included files?

Can you post a link?

3 Jan 2007, 2:31 PM
I didn't touch the folders or files structure and hierarchy.

The strangest thins is the fact that on another hosted server it works fine.

What could be the problem? My guess is that it has something to do with the feed proxy.

3 Jan 2007, 2:54 PM
Is the php page hosted on that domain? Do you have permissions to it? Can that server actually send php pages? Just guessing here with limited info.

3 Jan 2007, 9:27 PM
yes, yes and yes.

4 Jan 2007, 2:33 AM
here is the link for the example: http://israelblechman.com/yui-ext2/examples/layout/feed-viewer.html

4 Jan 2007, 3:46 AM
You know that you're getting this

Warning: readfile() [function.readfile ('function.readfile')]: URL file-access is disabled

in the server configuration in /home/.boomley/hartkckfni/israelblechman.com/yui-ext2/examples/layout

/feed-proxy.php on line 6

Warning: readfile(http://www.jackslocum.com/yui/feed/) [<a href='function.readfile'>function

.readfile</a>]: failed to open stream: no suitable wrapper could be found in /home/.boomley/hartkckfni

/israelblechman.com/yui-ext2/examples/layout/feed-proxy.php on line 6

Back from your requests to http://israelblechman.com/yui-ext2/examples/layout/feed-proxy.php ?

And that most of your gifs aren't being loaded?

Use Firebug, and check the HTTP requests.

4 Jan 2007, 3:52 AM
where did these warnings came from?

4 Jan 2007, 4:05 AM
How do I check the http requests and how come on one machine it works fine and on the other it produces warning messages?

4 Jan 2007, 4:07 AM
That message comes from the server.

Do you understand what it's doing?

Use the Firefox browser and the Firebug add on.

4 Jan 2007, 4:16 AM
I got the error message from the Firebug. now what?

4 Jan 2007, 4:34 AM
You debug your PHP script that's producing the error. It's not a yui-ext problem.

4 Jan 2007, 4:37 AM
The PHP is the original PHP file in the YUI example.

My guess is server configuration. any idea?

4 Jan 2007, 4:38 AM
Not the foggiest. I know nothing about PHP.

6 Jan 2007, 8:53 AM

The problem was indeed a PHP/server one. My hosting service disabled the use of the readfile() PHP function.

I have overcome the problem by using the PHP Curl lib.

The feed-proxy.php file I use now looks like that:


$feed = $_REQUEST['feed'];

if($feed != '' && strpos($feed, 'http') === 0){

header('Content-Type: text/xml');

$ch = curl_init($feed);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$str = curl_exec($ch);

echo $str;




Thank you for your help.

6 Jan 2007, 9:04 AM
OK, it looks good, but you should examine your page with Firebug in Firefox.

It is issuing dozens of HTTP requests for resources that are receiving a 404 (not found) response:


6 Jan 2007, 9:21 AM
Thanks. I'll check it out.