ob_start();
include("templateFile");
$tpl_file = ob_get_contents();
ob_end_clean();
The contents of your template file are now in the variable $tpl_file and you can you str_replace to input the data. Remember that str_replace handles arrays, so you can do many different replaces at once.
I looked into the other templating systems too and they were just more than I needed at this point.
On Friday, March 21, 2003, at 02:55 AM, Dan Rossi wrote:
i would like to know what good ones out there, fast template uses ereg and
is slow , itx screws with the source layout and the output looks shit ,
smarty wants control of the code , is there anything better than these guys
?
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- Brent Baisley Systems Architect Landover Associates, Inc. Search & Advisory Services for Advanced Technology Environments p: 212.759.6400/800.759.0577
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php