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 Link to comment https://forums.phpfreaks.com/topic/162173-fixing-end-of-content/ 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) Link to comment https://forums.phpfreaks.com/topic/162173-fixing-end-of-content/#findComment-855809 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[ Link to comment https://forums.phpfreaks.com/topic/162173-fixing-end-of-content/#findComment-855812 Share on other sites More sharing options...
Canman2005 Posted June 14, 2009 Author Share Posted June 14, 2009 really strange, any ideas anyone? Link to comment https://forums.phpfreaks.com/topic/162173-fixing-end-of-content/#findComment-855828 Share on other sites More sharing options...
Canman2005 Posted June 15, 2009 Author Share Posted June 15, 2009 grrrrrrr still causing issues Link to comment https://forums.phpfreaks.com/topic/162173-fixing-end-of-content/#findComment-855928 Share on other sites More sharing options...
Canman2005 Posted June 15, 2009 Author Share Posted June 15, 2009 Can anyone help? Link to comment https://forums.phpfreaks.com/topic/162173-fixing-end-of-content/#findComment-856354 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 Link to comment https://forums.phpfreaks.com/topic/162173-fixing-end-of-content/#findComment-856369 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.