Topic: ob_start XHTML->HTML not working
On my forum, I serve my pages as XHTML with application/xhtml+xml to any browser that supports it based on the accept-type header. For browsers that don't, I use an ob_start with a converter function to convert it to HTML, and send it as text/html. I have tested the converter script with WordPress, so I know it works. I use the include tag in the main template file to include the PHP script which converts the output. Unfortunately, I am running into problems. The MIME type is set correctly, and the DOCTYPE and <html> tag that it directly outputs are correct. But everything that the ob_start is supposed to do never happens; the output is still XHTML (not HTML) when I use a browser that does not support XHTML. This problem only occurs with PunBB; the exact same script works fine when added to a WordPress template.
Anyone have any ideas? Is it necessary for me to post my converter script?
Thanks in advance.