|
Posted by bobzimuta on 10/27/97 11:44
davids58@gmail.com wrote:
> So, how would I go about creating them statically using PHP and MySQL?
There are a few options to parse XML. I like the DOM functions
[http://us2.php.net/manual/en/ref.dom.php] or even SimpleXML
[http://us2.php.net/manual/en/ref.simplexml.php] if you have php 5.
They'll let you access the nodes of your document, so then you can put
the data inside your HTML tags.
If the document is static, there's no use using MySQL since it's extra
load and processing time. Better to leave the XML in it's source form.
But even so, if the document is indeed static, it's really best to use
the XML parser and write the HTML out to text files, so that you'll
never have to do it again.
Navigation:
[Reply to this message]
|