Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2005051

Re: [PHP] A couple questions about templating From: Greg Donald (destiney <email protected>)
Date: 05/09/05

On 5/9/05, James Williams <jamwil.php <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
> replacement, but how would one go about adding support for if {}
> statements as well as loops. I'm a little bit lost when it comes to
> this.

eval() will parse your PHP code. I use that with filemtime() for my
own simple templating/caching system.

-- 
Greg Donald
Zend Certified Engineer
http://destiney.com/

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php