Re: [PHP] Quick Question about Template Parsers

2003-01-22 Thread Brent Baisley
Sure, you could do it any way you want. One way or another you need to get it into a variable, so how you get the template there doesn't really have any affect on your replace function. I'm using the file based template so it's easy for users to modify. I "read" the template file into the outpu

[PHP] Quick Question about Template Parsers

2003-01-22 Thread Jim Lucas
In general, how do most template parsers work? do they read the file into a variable and do something to the effect of preg_replace() to element that is found? and if so, could you replace the step of reading the file into a variable with getting the template data out of a database? WARNING...