Re: [phplib] Inserting PHP Files using Templates From: Kartic Krishnamurthy (kaygee <email protected>)
Date: 01/05/01

You should probably try using Output Buffering functions (ob_start() etc) to
do this. ob functions will "trap" your php code's output from being sent to
the browser and you can thus output it to a variable and use set_var to set
the value this ob'ed variable to the template variable.

> Actually, I'm looking for ANY way to easily give my pages a consistent
look
> and feel without redundant HTML in 100 different files.

Anyway, as Kris once commented, templates are not the be all and end all of
site development. It can lead to very complex scripts depending what other
capabilities you want to use. If you site is fairly small, you can use a
combo of template and multiple scripts (there is an article about this on
phpbuilder.com) or even use php as they have on php.net (try view source on
various pages)

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>