ob_start(); include("plantilla.html"); $cad = ob_get_contents(); ob_end_clean(); eval("\$cad = \"$cad\";");