Date: 07/24/00
- Next message: Padraic Renaghan: "Re: [phplib] Scaling problem"
- Previous message: Kristian Köhntopp: "[phplib] Output buffering functions"
- In reply to: Eric Ries: "Re: [phplib] Conditional blocks"
- Next in thread: Kristian Koehntopp: "Re: [phplib] Conditional blocks"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Eric Ries wrote:
> I know that in PHP 4 there is such a function, but I do not know exactly
> what it is.
Can anyone confirm that such a function is exist?
> Also, because the template scheme that I am proposing is
> object-oriented, it would not be very difficult to get a string instead of
> printing. However, printing with include() is more efficient.
Well if you rely on include it's not going that easy.
> You could just load the data out of the file using PHP's file API, and then
> eval() the whole thing at a later date. This would not be too difficult.
Does eval expect the string in PHP mode not in HTML mode like include do?
Will try that tomorrow.
> Eric
> At 04:21 AM 7/22/00, Zakaria wrote:
> >If there is away to parse the php file and get the output in string
> >I think that will be great and we could dump all those Template thing.
> >
> >Maybe some php function like this
> >list($status, $header, $output) = execute("file.php");
> >where :
> > $status is the status of execute (there is error/not)
> > $header is the header (if there is any)
> > $output is the output
Wassallam,
-- Zakaria
PT. Asia Karsa Indah z4k4ri4 <email protected>
Advanced Technologies z4k4ri4 <email protected>
Jl. Raya Kalimalang 4B, Jakarta zakaria <email protected>
Telp : (62-21) 8649318 http://www.asia-karsa.com
Fax : (62-21) 8649316 http://linux.or.id/pemula
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Padraic Renaghan: "Re: [phplib] Scaling problem"
- Previous message: Kristian Köhntopp: "[phplib] Output buffering functions"
- In reply to: Eric Ries: "Re: [phplib] Conditional blocks"
- Next in thread: Kristian Koehntopp: "Re: [phplib] Conditional blocks"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

