Hello, I have lurked these forms for many weeks now, and this is my first post here.
I am currently building a PHP website and I am trying to create an RSS feed that will automatically update the content of a blog database into the feed. So far, nothing I have done has worked. The closest I've been able to get is seeing the RSS feed page with the channel and description, but the content does not appear.
The file is called rss.php, and this is the code I am using.
But here is a screenshot of how the code looks when I open the browser. [i28.tinypic.com ]
database.php would be my mySQL login info. I am running this code through my WAMP server. I am absolutely sure that the content is being pulled from the database, because if I remove the XML markups, the content is there.
I am assuming that I need to edit my server settings to allow XML to read PHP scripts, but I don't know how to do that. Any help would be appreciated. Thanks!
Msg#: 4176957 posted 1:57 am on Jul 27, 2010 (gmt 0)
Addendum: I just realized that when I edited this script to post, I had accidentally removed the "item" tags in the "while" script. I assure that the item tags are in fact in place, so they are not the cause of the problem.
Msg#: 4176957 posted 2:38 am on Jul 28, 2010 (gmt 0)
Thanks for the input.
I found a different strategy, which was to simply use php to write inside an xml file when I post through my blog instead of running a php file as an xml file. It seems to have solved my problem as my feed looks perfect now.