sh0wtym3 wrote:Is it that taxing on a server's memory though?
There's really no definite yes or no there. If the content that is to be buffered is small and there aren't many concurrent hits, and assuming your server doesn't have a small amount of RAM, then most likely not.
I've just always been against this method of "fixing" the headers problem. It's always seemed like a duct-tape-solution to me. In your situation, for example, why can't you separate the echo statements from the header()/setcookie()/etc. functions? HTTP headers are already sent before any of the HTML, so it should be natural that they should precede any data in PHP scripts.