fixing the 'headers already sent' warning/error
I'm sure this is a common problem and while I have found some answers to this question, I have a slightly different scenario here:
My index.php code requires my header.php file- which calls the session_start() function. The header.php comes in within the div element and simply goes:
with this arrangement, I get the error- "Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by..." twice in a row.
My presentation logic is a three column layout in a wrapper. Placing the above php code at the top does work, but also defeats the purpose of my box model. What please is the best way out. Thanks