Firstly I want to say sorry for being a such newbie... I'm currently having some trouble w/ my php include codings not working in version 5.24 while it worked back in 4.3.3 when i first got it. I've tried search on the forums and google for a solution but i couldn't find one. so here is the code hope someone can help me please.
it is a basic navigation to content thingy...
<?
if($page == "") {
include "front.html";
}
else{
$page = $_GET['page'];
if(eregi("^[a-z0-9\-_\.]+$", $page, $regs))
{
$dir = ""; //not strictly necessary, can be blank.
$ext = ".html"; //.php, .html, .txt, whatever
if(file_exists($dir . $page . $ext))
{
include($dir . $page . $ext); //or readfile if not expecting php code
}
else
include("index.php?page=front"); //or something similar
}
else
echo 'Naughty Naughty, very Naughty.';
}//footer stuff
?>