got a quick question. I work with a static site that i am trying to streamline. I was thinking of saving every thing content wise in XML and parsing it per page. What "anchor" on the page should I use? the Title? or??? to call the XML. Also, do you think this is a good idea?
I would take the file-name to find the corresponding XML file. You will need to normalise the file-name, so remove any unnecessary slashes, et cetera. And make sure if it cannot find the XML file, it fails gracefully. Don't forget to check for an empty file-name and default to index!
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Thanks for the reply. So maybe check it like this (psuedo):
get filename minus extension;
get xml with same filename minus extension;
$content = index.xml
$content = filename.xml
I just thought of something... I have many different folders with index.php in them....
I have been thinking for a while how to streamline this non-dynamic site i have. I wish it had more structure. I don't have access to nor am allowed to use a database or sqlite. Maybe I just have to suck it up.