$archivo = "ejemplo"; $contenido = "<html><font size=\"2\">hola</font>"; $id = fopen("$archivo.html","w+"); fwrite($id,"$contenido");