Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/04/2005, 05:17
Avatar de PosProdukcion
PosProdukcion
 
Fecha de Ingreso: noviembre-2004
Ubicación: Manzanares el Real (Madrid)
Mensajes: 726
Antigüedad: 19 años, 5 meses
Puntos: 9
inludes: varios body

Hola, tengo varias paginas php, de la siguiente forma:
Cita:
<html>
<head>
<body>
<?php
include("./variable.php");
include("./configuracion.php");
bla bla bla
?>
</body>
</html>
El problema (si es que es un problema), es que con el include se me quedan varios
html, head y body, y sus respectivos /html, etc. O sea, dentro del primer body me queda esto:
Cita:
<html>
<head>
<title>Documento sin t&iacute;tulo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
</body>

</html>
<?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Documento sin t&iacute;tulo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
</body>
</html>

Y AQUI EL CONTENIDO DE LA PAGINA GENERADA
¿No importa o tengo que corregirlo?

¿¿¿Sera que los ficheros incluidos de php deben contener UNICAMENTE los tags <?php... y ...?>???
Gracias