«^»
4.2. Approach Two: processing XML from a PHP script

If a webserver supports the running of server-side programs, then a browser visiting a page could trigger a webserver to run some code that reads an XML document and produces HTML. This could be done by using a CGI program or by running a servlet (coded in Java) (if your webserver supports the running of servlets). However, Section 6 of this document looks at how a PHP script can be used to read an XML document and produce HTML.