$url = "index.php"; $p = $_GET['p']; if (file_exists("$p.php")){include "$p.php";} else if($p != ""){@header("location: $url?p=alert&e=404");} ?>