Hi,
I've been testing a site here: http://www.ecocontrols.com/dev.
I've created a rss.php file but it doesn't seem to work on my server. It re-directs to the couch login page instead of the xml feed. On my localhost however it works fine. All my other .php files work perfectly. Any ideas? Is this a bug or have I done something really stupid?
Many Thanks
Feed Address: http://www.ecocontrols.com/dev/rss.php
Code:
I've been testing a site here: http://www.ecocontrols.com/dev.
I've created a rss.php file but it doesn't seem to work on my server. It re-directs to the couch login page instead of the xml feed. On my localhost however it works fine. All my other .php files work perfectly. Any ideas? Is this a bug or have I done something really stupid?
Many Thanks
Feed Address: http://www.ecocontrols.com/dev/rss.php
Code:
- Code: Select all
<?php require_once( 'login/cms.php' ); ?><cms:content_type 'text/xml' /><cms:concat '<' '?xml version="1.0" encoding="utf-8"?' '>' />
<rss version="2.0">
<channel>
<title>EcoControls News</title>
<link>http://www.ecocontrols.com</link>
<description>Latest EcoControls News; Commercial Lighting Controls from Mode Lighting</description>
<language>en-gb</language>
<pubDate><cms:date format='D, d M Y H:i:s' gmt='1'/> GMT</pubDate>
<cms:pages masterpage='news.php' limit='10'>
<item>
<title><cms:show k_page_title /></title>
<link><cms:show k_page_link /></link>
<pubDate><cms:date k_page_date format='D, d M Y H:i:s' gmt='1'/> GMT</pubDate>
<description>
<cms:html_encode>
<cms:show news_content />
</cms:html_encode>
</description>
</item>
</cms:pages>
</channel>
</rss>
<?php COUCH::invoke(); ?>