Re: Multiple body tags result in multiple headers and footers
Marc Hodgins <[email protected]> Fri, 29 Jun 2007 16:07:11 -0600
| Newsgroups | gmane.comp.apache.mod-layout |
|---|---|
| Message-ID | <[email protected]> |
It turns out the problem wasn't what I thought it was..... It wasn't the extra <body> tags that were inline in PHP code. As expected, mod_layout doesn't get to touch the output until after PHP has done its handling. The real problem is the use of the PHP flush() function. The application causing the issues (Coppermine Photo Gallery) was calling the PHP flush() function in numerous places. This was causing mod_layout to include the headers and footers numerous times. Commenting out the flush() calls cleared up the problem. Is mod_layout re-parsing the entire output buffer every time flush() is called? Is this a bug? Thanks Marc