Re: [phplib] Inserting PHP Files using Templates From: Peter Bowyer (reywob <email protected>)
Date: 01/05/01

At 06:06 AM 1/5/01 -0500, you wrote:
>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.

I have been doing this, but it seems to make my site very slow to
load. Anyone else tried it? I'm still searching for a way to do it
faster, and the method described in Fred Yankowski's tutorial may work
better. But can anyone tell me how I could split the code in his article
into two functions, one to do the header and one to do the footer?

Thanks,
Peter.
---oOo---
Do you sendcard?
http://www.sendcard.f2s.com/
PHP postcard script supporting 9 databases!
---oOo---

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