Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Galera... Acho que isso não é um problema do PHP... Mais talvez um bug do Dreamwaver... Olha Só... eu tenho uma página, uma index, que chama por include as demais, header, menu, home e footer. Até ai tudo bem. O código ta assim:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
@import url("css/style.css");
</style>
<title>Corppore.com.br - Corppore Medicina Estética</title>
</head>
<body>
<div id="header"> <? include "header.php"; ?> </div>
<div id="geral">
<div id="menu"> <? include "menu.php"; ?>
</div>
<div id="util"> <? include "home.php" ?>
</div></div>
<div id="footer"> <? include "footer.php" ?> </div>
</body>
</html>
Acho que ai em cima está tudo direito... Tem algum erro no PHP?.... Bom... Ai quando eu mudo para Design no Dreamweaver, aparece o seguinte o que ta na imagem abaixo:
/applications/core/interface/imageproxy/imageproxy.php?img=http://i293.photobucket.com/albums/mm61/vidalouka/imagem-1.jpg&key=2cd1c3b8c92bf05f9eaa81856859261ec2c481d22939a7cb849d0df8eaa90bba" alt="Imagem Postada" />
Alguém consegue explicar porque diabos tem essa advertência mandando fechar a head?!?!?!
Eu já olhei as páginas, header, menu, home e footer. Está tudo certo com ela. O dreamweaver valida elas perfeitamente... Engraçado é que valida também essa página. E tudo funciona perfeitamente. Só tem essa maldita advertência.
---
Esqueci de falar: quando eu tiro os includes essa porcaria de advertência some. Não to entendendo isso.
posta as outras paginas...nao eh erro do php nao... mas as veses você fecha tags demais e fica sobrando, o q ele mostrou nao eh q ta faltando eh q ta sobrando...
Vou colocar as páginas aqui.
Index.php
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
@import url("css/style.css");
</style>
<title>Corppore.com.br - Corppore Medicina Estética</title>
</head>
<body>
<div id="header"> <? include "header.php"; ?> </div>
<div id="geral">
<div id="menu"> <? include "menu.php"; ?>
</div>
<div id="util"> <? include "home.php" ?>
</div></div>
<div id="footer"> <? include "footer.php" ?> </div>
</body>
</html>
Header.php
<!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">](http://www.w3.org/1999/xhtml)
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<style type="text/css">
@import url("css/style.css");
</style>
</head>
<body>
<table class="headerdois"><tr><td background="images/cima.jpg"></td>
</tr></table>
</body>
</html><!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">](http://www.w3.org/1999/xhtml)
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<style type="text/css">
@import url("css/style.css");
</style>
</head>
<body>
<div id="menudois">
<table class="menutbl" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#FFCCFF"><center> - - - HOME - - - </center></td>
</tr>
<tr>
<td onMouseOver="this.bgColor='#FFCCFF';" onMouseOut="this.bgColor='';">..:: <a href="index.php">Home</a></td>
</tr>
<tr>
<td onMouseOver="this.bgColor='#FFCCFF';" onMouseOut="this.bgColor='';">..:: <a href="empresa.php">Quem Somos?</a></td>
</tr>
<tr>
<td onMouseOver="this.bgColor='#FFCCFF';" onMouseOut="this.bgColor='';">..:: <a href="localizacao.php">Onde Estamos?</a></td>
</tr>
<tr>
<td onMouseOver="this.bgColor='#FFCCFF';" onMouseOut="this.bgColor='';">..:: <a href="estrutura.php">Nossa estrutura</a></td>
</tr>
<tr>
<td onMouseOver="this.bgColor='#FFCCFF';" onMouseOut="this.bgColor='';">..:: <a href="faleconosco.php">Fale Conosco</a></td>
</tr>
<tr>
<td onMouseOver="this.bgColor='#FFCCFF';" onMouseOut="this.bgColor='';"> </td>
</tr>
<tr>
<td bgcolor="#FFCCFF"><center> - - - NOSSOS SERVIÇOS - - - </center></td>
</tr>
<tr>
<td onMouseOver="this.bgColor='#FFCCFF';" onMouseOut="this.bgColor='';">..:: <a href="pagina.php?pag=1">Peeling de Cristal e Químico</a></td>
</tr>
<tr>
<td onMouseOver="this.bgColor='#FFCCFF';" onMouseOut="this.bgColor='';">..:: <a href="pagina.php?pag=2">Minilipo</a></td>
</tr>
<tr>
<td onMouseOver="this.bgColor='#FFCCFF';" onMouseOut="this.bgColor='';">..:: <a href="pagina.php?pag=3">Botox</a></td>
</tr>
<tr>
<td onMouseOver="this.bgColor='#FFCCFF';" onMouseOut="this.bgColor='';">..:: <a href="pagina.php?pag=4">Preenchimento</a></td>
</tr>
<tr>
<td onMouseOver="this.bgColor='#FFCCFF';" onMouseOut="this.bgColor='';">..:: <a href="pagina.php?pag=5">Fios</a></td>
</tr>
<tr>
<td onMouseOver="this.bgColor='#FFCCFF';" onMouseOut="this.bgColor='';">..:: <a href="pagina.php?pag=6">Laser</a></td>
</tr>
<tr>
<td onMouseOver="this.bgColor='#FFCCFF';" onMouseOut="this.bgColor='';">..:: <a href="pagina.php?pag=7">Carboxiterapia</a></td>
</tr>
<tr>
<td onMouseOver="this.bgColor='#FFCCFF';" onMouseOut="this.bgColor='';">..:: <a href="pagina.php?pag=8">Endermologia</a></td>
</tr>
<tr>
<td onMouseOver="this.bgColor='#FFCCFF';" onMouseOut="this.bgColor='';">..:: <a href="pagina.php?pag=9">Drenagem Linfática</a></td>
</tr>
<tr>
<td onMouseOver="this.bgColor='#FFCCFF';" onMouseOut="this.bgColor='';">..:: <a href="pagina.php?pag=10">Tratamento de Estrias</a></td>
</tr>
<tr>
<td onMouseOver="this.bgColor='#FFCCFF';" onMouseOut="this.bgColor='';">..:: <a href="pagina.php?pag=11">Trat. de Gordura Localizada</a></td>
</tr>
<tr>
<td onMouseOver="this.bgColor='#FFCCFF';" onMouseOut="this.bgColor='';">..:: <a href="pagina.php?pag=12">Tratamento de Celulite</a></td>
</tr>
<tr>
<td onMouseOver="this.bgColor='#FFCCFF';" onMouseOut="this.bgColor='';">..:: <a href="pagina.php?pag=13">Tratamento de Acne</a></td>
</tr>
<tr>
<td onMouseOver="this.bgColor='#FFCCFF';" onMouseOut="this.bgColor='';">..:: <a href="pagina.php?pag=14">Máscaras Faciais</a></td>
</tr>
<tr>
<td onMouseOver="this.bgColor='#FFCCFF';" onMouseOut="this.bgColor='';">..:: <a href="pagina.php?pag=15">Limpeza de Pele</a></td>
</tr>
<tr>
<td onMouseOver="this.bgColor='#FFCCFF';" onMouseOut="this.bgColor='';"> </td>
</tr>
<tr>
<td onMouseOver="this.bgColor='#FFCCFF';" onMouseOut="this.bgColor='';"> </td>
</tr>
<tr>
<td onMouseOver="this.bgColor='#FFCCFF';" onMouseOut="this.bgColor='';"> </td>
</tr>
<tr>
<td onMouseOver="this.bgColor='#FFCCFF';" onMouseOut="this.bgColor='';"> </td>
</tr>
</table>
</div>
</body>
</html><!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">](http://www.w3.org/1999/xhtml)
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<style type="text/css">
@import url("css/style.css");
</style>
</head>
<body>
<div id="paghomeg">
<p class="titulo">Bem-vindos ao Corppore Medicína Estética!</p>
</div>
</body>
</html><!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">](http://www.w3.org/1999/xhtml)
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<style type="text/css">
@import url("css/style.css");
</style>
</head>
<body>
<table class="footerdois" cellpadding="0" cellspacing="0"><tr><td background="images/baixo.jpg"></td>
</tr></table>
</body>
</html>Nossa ta zoado esse seu esquema, tente melhorar sua ideia
todas suas paginas tem DOCTYPE, tag html sobrando depois de tudo renderizado seu html é INVALIDO no W3C
e outra coisa pra que usar .php se nessas paginas nao tem nenhum processo PHP?
isso só faz ficar mais lento a toa.
Valeu pela dica! To fazendo mais para aprender mesmo! Vou mudar!
P.S.: Para fazer as páginas completas, todas ficam muito pesadas. Eu estava vendo programas aqui como phpnuke e xoops... Posso estar errado, mais eles usam estruturas semelhantes que essa... Acho que é errado... Mais ficaria mais fácil de organizar e editar os arquivos futuramente, independentemente... Se eu colocar tudo junto na mesma página... Imagina se eu quiser fazer uma alteração na header, que não seja no css, e sim na estrutura... teria que mudar todas as páginas! Eu estava pensando em fazer isso assim, porque no futuro seria necessário mudar somente uma página...........
mas a ideia é de templates e arquivos separados é na facilidade de manutenção, mas as paginas que vao ser incluidas nao pode ter toda estrutra html senao vira uma zona, e como falei o html nao vai ser valido no W3C.
...senao vira uma zona, e como falei o html nao vai ser valido no W3C.
Fora a redundância de informações:
meta-tag definida 3 vezes:
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
arquivo css importado 3 vezes
@import url("css/style.css");
Não uso o dreamweaver...mas a parte do PHP ta correta sim.
A...e não usa short-tags não...