You don't have to use ob_end_flush() in page.php. "The new page lives it's own life"
This is typically how it should be done
ob_start();
?>
<html>
<head>
</head>
</html>
<?
if($fromPosted){
// Process posted data
header("location: page.php");
}
ob_end_flush();
?>
ps! ob_end_flush() would not discard the content of the buffer or affect it at all.
Main Topics
Browse All Topics





by: Michael701Posted on 2003-08-13 at 08:09:54ID: 9139202
First, if possible you should be checking the user and executing the header() before any output is sent to the browser, then you won't need to use the flush commands.
If you are outputing data before the header then shouldn't you use ob_end_clean() just before the header command?
I'm not positive, but I think when you execute the header() it will discard any data currently in the buffer.