![]() |
![]() |
||||||
|
|||||||
| Tags: |
![]() |
|
|||
|
I get this message:
[Q]Unable to read the feed source file C:\websites\dev\http:\rss.news.yahoo.com\rss\midea st [/Q] I am trying to use the cffeed. Everything works fine when I use a static feed. But when I try to loop through my db table that contains the RSS Name and RSS Feed, I get the above error message. "C:\websites\dev\" is the web server path. What is causing this to happen? When I manually enter the rss feed in the source attribute it works fine. works..<cffeed action="read" source="http://rss.news.yahoo.com/rss/mideast " properties="meta" query="items"> won't work <cffeed action="read" source="#RSS.RSSFEED#" properties="meta" query="items"> |
| Sponsored Links |
|
|||
|
dump out your #RSS.RSSFEED# variable and see what it contains. compare
it to what you think it contains/what it should contain and do something about the differences. Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ |
|
|||
|
well, if i do this:
<cfset RSS = {}> <cfset RSS.RSSFEED = "http://rss.news.yahoo.com/rss/mideast"> <cffeed action="read" source="#RSS.RSSFEED#" properties="meta" query="items"> it works fine. that tells me that YOUR RSS.RSSFEED variable does NOT evaluate to "http://rss.news.yahoo.com/rss/mideast". Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ |
|
|||
|
Yes, like I said that works for me too, but when I query the DB for the URL,
thats where it doesn't seem to be working. Even though I can output #RSS.RSSFeed# and it shows the correct url. This makes me think somethings wrong with the CFFEED or something with the string coming from the DB. Since the static cffeed works, it must be the way the variable is coming from the DB... but when I dump the variable from the query, I get the actually rss feed that I need. |
|
|||
|
it's definitely the value in the db is wrong. but you say when you dump
it it shows up correct? is your code doing any string manipulation on the data returned by the db? can you do this: <pre> <cfoutput>#RSS.RSSFEED#</cfoutput> </pre> just before your cffeed call and post the result here? Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ |
|
|||
|
what page?
is it too hard for you to add <pre><cfoutput>#RSS.RSSFEED#</cfoutput></pre> to your code and post the result here? do you really want to solve this one? as I said before, the data in your db is most likely incorrect. unless you do some manipulation on the data returned from the db before you use it in your <cffeed> - then your db result manipulation is at fault. as simple a thing as having a / in front of the feed url will cause this error. Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ |
|
|||
|
if you had done what i suggested you would have seen the space in front
of your url and wouldn't have had to bother Ray with this. ![]() Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
- Contact Us
-|-
Adobe Dreamweaver Forums -|-
Archive -|-
Top -|-Rules/Disclaimer-|-Help/Support-|-Advertise