I got this script below that is seeming to be a problem for me... I can get it to run just as it is, but I not only have trouple with getting it to run from certain paths but there's a few things I need to fix, and I'm hoping there are people out there who can help me....
I can call links fine by doing this... /index.php?id=contact
But I can't call from different directories... the index.php file would have to be in the same directory as the contact.php which is what is being called....
Also, how would I setup an error page so that if someone just webt tom index.php with out a call they'd get a specifically designed page I set forth.... and if the page they called wasn't there..... any help would be greatly appreciated...
</head>
<body background="black.gif" text="#ffffff" bgcolor="#000000" link="#990099" vlink="#00ff00" alink="#ffffff">
<?
$ext = ".php";
$path = "/home/path/to";
$id = "".$path."".$id."".$ext."";
if (file_exists($id))
{
include($id);
} else {
include("file.php");
}
?>
</body>
</html>