there are printf()s in there. Just use output control to capture all the output from that and return that. That's the easiest way.
look into these:
ob_start()
ob_get_clean()
time bomb
Moderator: General Moderators
okay bro, i really appreciate the help. Here is where I'm at. I got ob_start to submit the info, but i can't get both ob_start and substr to work at the same time.The Ninja Space Goat wrote:there are printf()s in there. Just use output control to capture all the output from that and return that. That's the easiest way.
look into these:
ob_start()
ob_get_clean()
Code: Select all
function callback($buffer)
{
return substr($buffer,96,100);
}
ob_start("callback");
render_news('http://www.surfline.com/rss/region.cfm?alias=cocoabeachcam', false, news, news2,1);
$report = ob_get_contents();
ob_end_flush();thanks
Code: Select all
ob_start();
render_news('http://www.surfline.com/rss/region.cfm?alias=cocoabeachcam', false, news, news2,1);
$report = substr(ob_get_clean(),96,100);
// Now write $report to a file