A simple demonstration of how PHP uses templates to generate static pages.
Template file templates.htm:
PHP file code:
$title = webjx;
$hello = webjxcom!;
$file = file_get_contents (templets.htm);
$file = str_replace(array({title},{hello}),array($ title,$hello), $file);
echo $file;
?>