Ian made a great point, in that while it may be fun to explore lots of possibilities, it is probably a good idea to have an idea of the why and wherefore before you install anything ;=}
ASCIIMathML where in js or php form, cares not about the nature of the server platform.
It is a wonderful tool for providing an easy to use text expression tool for stating mathematics, displaying asciimath text expressions, Tex and SVG, providing a simple built in calculator,etc., all through a this one script.
However, it is not "necessary" to install either DragMath or ASCIIMathML. Installation affords some benefits.... I recommend their usage because I enjoy the benefits they confer.....