$errorpage = "pages/404.php";
if($HTTP_GET_VARS['page'] == "") {
// include("pages/home.php");
echo "Down For Reconstruction";
} else {
$pagename = "pages/" . $HTTP_GET_VARS['page'] . ".php";
if (file($pagename)) {
include($pagename);
} else {
include($errorpage);
}
}
I wrote the above but it still errors with the file command saying that it doesnt exist so im confused, can anyone help out here?
Thx
Freakonaleash😕 😕