Having some problems removing details & validation of RSS feed.
Sorry in advance, I'm rather new at this.
Below is the full code for the rss.php feed (It's from FMyScript if anyone is wondering). I want to remove the junk that it prints out at the bottom. My ultimate goal is to automate posting RSS content to Twitter (newest first) via TwitterFeed or the like.
http://pastebin.com/vLvUizgx开发者_如何转开发
Example -
By: Sammi on 22-08-2011 Category: Health
Now the obvious step for me is to just remove say things of this nature -
print " ".$getusername."\n";
But when I follow my 'obvious' steps I end up breaking the feed. Can anyone provide further guidance?
Thanks in advance!
Probably just some syntax issues. Assuming I know what you are wanting to do, something like this should work:
http://pastebin.com/HfDaQiN0
The important lines being
print " <description>\n";
print " <![CDATA[";
print $description;
print " ]]>\n";
print " </description>\n";
精彩评论