i have a this piece of old code:
$page="$htdir$page.ht";
if (file_exists($page)) {
require($page);
} else {
echo "$error_message";
};
it worked fine until i upgraded php from 4.1.2 to 4.2.x, could anyone suggest some code to accomplish the same task but work with a new version of php? it needs to have index.php?page=index set $page to $htdir$index.ht and then display $page. the error message thing in the old code is not needed. i just want something that will work.