PHP Code:<?
if($_GET[page]){
// checks if the page your looking for exists if not displays error
if(!file_exists($_GET[page].".php")){
echo"<strong>Missing File: </strong>".$_GET[page].".php";
}else{
// includes the page so the url is ?page=pagename
include_once($_GET[page].".php");
}
}else{
// Change home.php to your homepage
include_once("home.php");
}
?>





Reply With Quote
