Having a problem with the code below, everytime I try to call a page via ?id=hello (that file would be located in incl/hello.html) it just shows the error page.
<?
$ext = ".html";
$id = "incl/".$id.$ext;
if (file_exists($id))
{
include($id);
} else {
include("incl/404.html");
}
?>