When using output buffering in the following way:
$content = ob_get_contents();
Normally this would open and parse template.html and
return a fully parsed file in the $content variable without
any output to the shell/browser.
template.html has contents similar to the following:
blah blah blah
echo "<td>This is in code!</td>";
$content is filled with the right content, but everything
up to <?php is also echoed out to the browser.
Log in to post a comment.