creas un icnlude con los archivos de configuracion q tengas cosas q no sean ni de cabecera ni barra de navegacion contenido lateral ni pie es decir con la conexion y las cosas q compruebes si estq tengas
luego el include de cabecera pero lopones enel conetnido aligual q el lateral la barra y el pie asi mira lo ao yo:
Código PHP:
Ver original
if(!include_once '/modulos/seguridad/index.php'){/// ali meto conexion etc....
aki errores
}else{
if(!include_once '/modulos/addons/index.php'){aki comprobaciones /////// online etc.....
aki errores
}}?>
<!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" xml:lang = "es" lang = "es">
<!--head-->
<head>
<!--meta-->
<title>titulo</title>
<meta name = "copyright" content = ""/>
<meta name = "author" content = "."/>
<meta name = "version" content = "1.0"/>
<meta name = "distribution" content = "global"/>
<meta http-equiv="rating" content = "General"/>
<meta http-equiv = "Content-Type" content = "text/html; charset = utf-8"/>
<meta http-equiv = "Content-Language" content = "es"/>
<meta name = "google" content = "translate"/>
<meta http-equiv = "expires" content = "Mon, 01 Jan 2010 00:00:01 GMT"/>
<meta name = "revisit-after" content = "1 month"/>
<meta http-equiv = "pragma" content = "no-cache"/>
<meta http-equiv = "cache-control" content = "no-cache"/>
<meta name = "robots" content = "index,follow"/>
<meta name = "description" content = "" lang = "es"/>
<meta name = "keywords" content = "" lang = "es"/>
<!--end meta-->
<!--css-->
<!--fin css-->
<!--scripts-->
<!--fin scripts-->
</head>
<!--fin head-->
<!--body-->
<body>
<!--contenido-->
aki includes cabecera lateral pie y barra
<!--fin contenido-->
</body>
<!--fin body-->
</html>
<!--fin html-->
se puede hacer de muchas maneras pero lo mejor es separar todo para modificar mas rapido y no liarte con el codigo