Steve887
07-16-2006, 09:11 AM
How can you get around the "headers already sent...." when you use both session_start() and header in your code?
Eg.
Line 1 <?php session_start();
2...59 (for example) various code
60 header ('Location: anotherpage.php'); ?>
I have been looking at ob_start() in the php manual but I'm not sure how to use it in this case. Can anyone help?
Eg.
Line 1 <?php session_start();
2...59 (for example) various code
60 header ('Location: anotherpage.php'); ?>
I have been looking at ob_start() in the php manual but I'm not sure how to use it in this case. Can anyone help?