Hi. I'm fairly new with PHP, but am familar with programming. The following is the code I'm using on root.php
<?
$ext = ".php";
if (!$_GET['id']) { $_GET['id'] = '99'; }
$id = $_GET['id'];
$whatever = "".$id."".$ext."";
$myhome = 'default.php';
if(is_file("$whatever"))
{
include($whatever);
}
else
{
include("$myhome");
}
?>
http://www.shadowmist.net/knights/test/root.php is the website that I'm running the script. I couldn't find any errors with this code and neither could another guy I was talking too. He loaded the same directory onto his webserver and received no errors.
His URL is: http://d5.egnog.net/php/root.php
Thanks!