how can i get it to put it back into the string with that data because it doesn't seem to work heres the code i have currently
<?php
// Settings Section begins here!
$sitedir = "c:/webserver/htdocs/hwsite"; // Absolute Path to site directory
$templatedir = "$sitedir/Sources"; // Path to template file
$templatefile = "template.html"; // Template File Name
// Settings Section ends here!
// Script starts here leave alone unless you are modify the code!
$template = readfile ("$templatedir/template.html");
$template = ereg_replace('<site title>', 'Site Title', $template );
$template = ereg_replace('<site links>', 'Site Links', $template );
$template = ereg_replace('<site main>', 'Site Main', $template );
echo $template;
?>
BTW: how come it puts nubers at the end i think is has to do with read file
template.html contains theml to be used