What do you mean with "default page" ??
If I'm catching what you want, you can do it something like:
PHP Code:
<?php
if (isset($the_file) && file_exists("data/$thefile.txt"))
{
include("/data/$thefile.txt");
}
else
{
if(isset($the_file))
include("data/error.txt");
else
include("data/default.txt");
}
?>
This allows the user to parse a
?the_file=something along in the url, and you will include that, if it exists. If it dosn't exists they will get an error, if they are just viewing the page, without any parsing of the
the_file argument, they will be shown the default file.
Is it something like that you wanted ?