Topic: An Easier Way to Put in a DOCTYPE
As you may know, the DOCTYPE is MANDATORY (eg. in X/HTML, MathML, SVG, etc.).
However, it's hard to remember all thw ways to put it into a Web page.
So, I made the ScottyWZ.COM DTD PHP Function. It only takes 2 lines of PHP code:
<?php
include "dtdf.php";
write_dtd();
or
<?php
include "dtdf.php";
write_dtd("DOCTYPE")
where DOCTYPE is the abbreviation for the DTD you want to use. These abbreviations are located in the script itself and readme.txt. If the DOCTYPE you want to use isn't listed, you can add it.
Enjoy!
P.S. I've gotten it to work in PunBB. In fact, that's how I tested it.