Can't get the file to read from a template folder.
Here what I am trying to do, the index.php works. know if I hit a link button the script wants to read from the www area and not from the template folder.
Here is the area of the script thats controls the page.
if (isset($GET['x']))
{
$target_page=$GET['x'];
$target_page=$target_page.".html";
if (file_exists($target_page))
{
include ($target_page);
}
else
{
echo "<center>Sorry, the page you tried to access could not be found on the server<center>";
}
}
else
{
include('template/main.php');
}
Can somebody tell me why this keep happening....
Thanks
The_broken