01-02-2008, 02:47 PM
|
#1 (permalink)
|
|
The Contributor
Join Date: Nov 2007
Posts: 41
Thanks: 24
|
my way of templating, is this a good method?
in terms of speed and low cpu loads, is this a good way to go?
$html = file_get_contents("home.tpl");
$html = str_replace("%fname%", $firstname, $html);
$html = str_replace("%lname%", $lastname, $html);
echo $html;
__________________
"Things you can get access to, you should never memorize." -Albert Einstein
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin
|
|
|
|