Output_Buffering outputs buffer content twice?
Posted: Sat Jan 21, 2006 5:04 pm
First experience using output buffering on my own and I'm having some problems.
Here's the basic layout:
It works fine, it prints the contents in the content area, but it includes it before it prints the page, including it on the page twice. What'd I do wrong? It includes it at the top of the page whether I include end_flush or not.. any advice?
Here's the basic layout:
Code: Select all
<?php
if (!defined("IN_MKP")) {
die ("Sorry !! You cannot access this file directly.");
}
ob_start();
?>
..CLIPPED ENDLESS CODE..
<?
ob_end_flush();
$output = ob_get_contents();
$mklib->printpage("1", "1", "Playlist and Requests", $output);
?>