About Serving XHTML with the correct mime type using PHP
Serving XHTML with the correct mime type using PHP- Describes how to send XHTML with the correct mime type safely using PHP. Includes the ability to "fall back" to HTML if the viewing web-browser does not support XHTML.