...

View Full Version : PHP Header solutions



wincode
11-29-2010, 03: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

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

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

See this:
http://www.weberdev.com/ViewArticle/Output-Buffering-with-PHP



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum