i'm hacking about with phpBB trying to make it look nicer. got a good old "headers already sent" problem tho'...
ive written a function to take the error strings that phpBB throws up and format them nicely to match the rest of the BB.
the function 'inlcudes' various files needed to make up the error page including 'header.php'. for most of the errors in phpBB this is fine as the error page is built from scratch. however some of the errors reload the current page with the error in place of the original content.
obviously in these cases i get 'headers already sent ' errors when my function tries to include the header page again.
how can i test if "include header.php" has already taken place on a page, so i can only include it if it's not already there [ie. building a page from scratch as opposed to rewriting content for one that's already there]?