Hey There,
I'm currently using this code for my site to include.
<?
$ext = ".html";
$id = "".$id."".$ext."";
if (file_exists($id))
{
include($id);
} else {
include("incl/404.html");
}
?>
It works fine, but my root directory is starting to get crowded and I would like to move all the files into a directory called "incl". But I have been trying to edit the $id line to point it to a directory instead of the root but it doesn't seem to work for me.
Any help would be appreciated.
Andrew