Código PHP:
<?
if(!file_exists("$home.htm"))
{
if(!file_exists("$home.php"))
{
include("error404.htm");
}else{
include("$home.php");
}
}else{
$fp=fopen("$home.htm","r");
$seccion=fread($fp,filesize("$home.htm"));
echo"$seccion";
}
?>