Re: [PHP] A couple questions about templating

2005-05-09 Thread James Williams
On 5/9/05, Rory Browne <[EMAIL PROTECTED]> wrote: > > I made a second one, which reads the file into an array, > > changes the variables the same way, but instead compiles the finished > > product into a compile directory and then reads the compiled file back > > to the page. the benefit to this b

Re: [PHP] A couple questions about templating

2005-05-09 Thread Greg Donald
On 5/9/05, James Williams <[EMAIL PROTECTED]> wrote: > 1st question) I need a professionaly opinion on to which solution is > better, considering speed, security, and expandability. Bench them both with Apache's ab. > 2nd question) Like I said before, I've mastered the art of variable > replace

Re: [PHP] A couple questions about templating

2005-05-09 Thread Rory Browne
> I am trying to make a small, fast, and simple templating class... Now > I have mastered the art of variable replacement, and have made two > versions. The first one I made simply used file() to load up the file > into an array, Personally I think you should use file_get_contents() instead. > s

[PHP] A couple questions about templating

2005-05-09 Thread James Williams
Hey fellas, sorry to infest the list with another question about a templating engine, but I am looking for some professional opinions here... I am trying to make a small, fast, and simple templating class... Now I have mastered the art of variable replacement, and have made two versions. The fir