So the state came up with this great idea of using templates on the internet pages so they have a similar look to them. That's fine and all but I'm running into a problem.
The templates are setup to use SSI and some SSI files might contain their own SSI calls. Well I've been given a project that will need to be coded in PHP and put on the internet server. PHP doesn't process SSI calls and the output isn't ran through the SSI parser. So either I recreate all the pages myself or I do some magic.
I'm thinking of using
preg_replace_callback to parse the SSI file and look for other SSI files and then use include() and some logic to recursively handle the file includes.
But before I go and do all of that, does anyone know of any scripts that handle that already and/or a better way of handling this?