ob_start() for me is a hack tool, mostly i use it for setting header only.
i have this scheme of every website i built :
see that my content.php sometimes need to ‘throw’ user to another page especially if the content.php is a form page.
<form action="" method="post">
look that my header(“location: index.php?page=success”) will not be executed by php because php already generate output from include(“./header.php”);
so, i use ob_start() with a comment like this :
but then the problem starts : the website cannot be loaded..