Canman2005 Posted June 14, 2009 Share Posted June 14, 2009 Hi all I'm pulling part of a RSS feed into my PHP page, the part of the RSS feed im pulling in is a news article. Everything works fine, apart from the last part of the artcle that is being pulled in looks like <a title="News" href="http://www.do so there is basically half a link at the end of the article. So my question is, is there a way to finish off or delete any incomplete HTML at the end of a block of code? Hope that makes some kind of sense Thanks loads in advance Mark Quote Link to comment Share on other sites More sharing options...
pkedpker Posted June 14, 2009 Share Posted June 14, 2009 could be imcomplete because you didn't finish download the page using the fread or whatever you use it only reads a set of chucks I think the default is like 4096 which is 4 KB so if you read 4 KB chucks you will have to keep reading them until EOF is reached (End of File) Quote Link to comment Share on other sites More sharing options...
Canman2005 Posted June 14, 2009 Author Share Posted June 14, 2009 Nope, it's incomplete, looking at the source of the RSS direct, it shows as <a title="News" href="http://www.do [...]]]></description><content:encoded><![CDATA[ Quote Link to comment Share on other sites More sharing options...
Canman2005 Posted June 14, 2009 Author Share Posted June 14, 2009 really strange, any ideas anyone? Quote Link to comment Share on other sites More sharing options...
Canman2005 Posted June 15, 2009 Author Share Posted June 15, 2009 grrrrrrr still causing issues Quote Link to comment Share on other sites More sharing options...
Canman2005 Posted June 15, 2009 Author Share Posted June 15, 2009 Can anyone help? Quote Link to comment Share on other sites More sharing options...
Canman2005 Posted June 15, 2009 Author Share Posted June 15, 2009 It's ok, i've found a solution, by putting <div style="clear: both;"></div> at the end of each article HTML feed solves it Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.