Hi all.
I'm planning on building a system to allow me to more easily maintain my website. I'd like to code pages in basic HTML, then display them parsed by PHP3.
I want to add some tag extensions to my HTML pages, then have them replaced with DB content by PHP before displaying.
PHPLIB and FastTemplates seem to do this up to a point, but I don't think they can support variables in the tags. For example, they could handle {NAVBAR} but not something like {NAVBAR color="#00FF00"}.
Does PHP have a built-in function to make this simple? Or does a code library exist? I'd like to have a function that when I check a line for NAVBAR, it comes back true and gives me an array populated with the parameters and their values.
I imagine this is something like parsing HTML tags like the IMG tag.
I've written some code like this before but it was messy, checking for the position of the parameters and then storing them. And the paramters had to come in the same order every time.
Thanks for the info...