PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?php
ob_start();
?>
//HTML GOES HERE
<?php
//more PHP
?>
//HTML GOES HERE
<?php
//more PHP
ob_flush();
?>
But I need it to not send headers or anything until it gets to the ob_flush(); how can i do this with still being to edit this page in WYSIWYG formate.
I'm not sure how this normally works... does apache send some headers before PHP has finished working? Do you mind if I ask why you need to do this so that we can maybe try to tackle the problem from a few different angles.
<?php
// this is the PHP code that deals with the request and decides what to do
// this is the PHP code that gets and process any data necessary for this page
// this is the PHP code that set vars that wiil be used in the template
ob_start();
include 'mytemplate2.php'; // this is the HTML and presentation related PHP code
ob_flush();
?>