Template file templates.htm:
Hello {hello}
PHP file code:
$title = phperz;
$hello = phperz.com!;
$file = file_get_contents(templets.htm);
$file = str_replace(array({title},{hello}),array($title,$hello), $file);
echo $file;
?>
How about it? It’s pretty simple, of course. Of course, this is just an idea. You have to use your own brain for specific applications.