View Full Version : PHP Header solutions

11-29-2010, 04:07 AM
Hello. I'm having a hard time working with the header() function. I use it often, but I get that common problem due to use of the function after an outputted head tag I suppose. On the php manual (http://php.net/manual/en/function.header.php), it states "Remember that header() must be...", but what are some ways of getting around this?
For most of my codes, I use

<?php include("incpage.php"); ?>//where this incpage.php contains a header() function

11-29-2010, 05:21 AM
buffering the output ... ob_start()

See this: