Email conversation
From | Rod Ruggiero |
To | Me |
Subject | RSS feed parser error |
Date | 1 December 2004 6:54 |
http://www.howtocreate.co.uk/tutorials/jsexamples/rss.html
Hello, thank you for your helpful site.
I unzipped the contents of the archive for this parser, and put it on my
server. When I try it I get the error "RSS newsfeeds are served with a URL
beginning with http:// or https://"; I'm a newbie with RSS (and PHP) so I'm
not sure what's happening.
Thank you.
Rod
From | Me |
To | Rod Ruggiero |
Subject | Re: RSS feed parser error |
Date | 1 December 2004 8:26 |
Rod,
Assuming you put all three files in the same directory, it should just work.
However, there are a few things that may cause it to produce that error
message:
- if the feed URL you provided is not a valid RSS feed URL. I recommend
trying this one to check:
http://news.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss091.xml
- if the newsfeed is not working (eg. if the BBC news server is offline).
You can usually check that by loading the RSS reed URL yourself in your
browser (not using my script). It should look like a raw XML file. If it
displays any error messages, then you can assume that this is the problem.
- if your hosting service has restricted you from retrieving URLs with PHP -
this is one of the PHP configuration settings:
http://www.php.net/manual/en/ref.filesystem.php#ini.allow-url-fopen
If they have done this, there is nothing you can do except ask them nicely
to allow you to use it - they may say 'no' as this option is intended to
stop people hosting proxy services.
I suspect that you have been caught out by the third of these, so you will
probably need to ask your hosting service to let you run it - if necessary,
send them the PHP documentation URL that I gave you.
Hope this helps
Mark 'Tarquin' Wilton-Jones - author of http://www.howtocreate.co.uk/
From | Rod Ruggiero |
To | Me |
Subject | Re: RSS feed parser error |
Date | 1 December 2004 22:23 |
Thanks Mark,
It was the setting for allow-url-fopen, but they allowed me to change it to
'on'. Works great - thanks again.
Rod