This code is almost the same as I have written.
That code would work, but how can I make it select files from a folder named template when a link is called.
This is what I have on the main.php page.
See the Index.php above calls this file below main.php using domain.index.php
Now when I try to call another template using domain.com/index.php?page=history
or another page, it never calls from the template folder, but calls the template from the www folder.
<?php
if(!eregi("index.php",$PHP_SELF)) {
die("You can't access this file directly");
}
?>
<?include("template/main.html");?>