Ver Mensaje Individual
  #11 (permalink)  
Antiguo 11/09/2009, 16:04
Avatar de abimaelrc
abimaelrc
Colaborador
 
Fecha de Ingreso: mayo-2009
Ubicación: En el planeta de Puerto Rico
Mensajes: 14.734
Antigüedad: 15 años
Puntos: 1517
Respuesta: Meta tags en php?

Ok, dejame aclararte algo. PHP cuando haya terminado toda su programación, le va a enviar al navegador HTML. Si tu lo que quieres es incluir lo que acabas de indicar solo tienes que escribirlo directamente entre head y head. Te voy a enseñar mas grafico
Código PHP:
Ver original
  1. <?php
  2. //codigo de php
  3. ?>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  5. <html>
  6. <head>
  7. <meta name="description" content="xxxxxx">
  8. <meta name="keywords" content="ejemplo1 ejemplo2">
  9. </head>
  10. <body>
  11. .....
  12. </body>
  13. </html>

Si tu lo tienes declarado en un archivo aparte y quieres incluirlo, lo puedes hacer de esta manera
Código PHP:
Ver original
  1. <?php
  2. //codigo de php
  3. ?>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  5. <html>
  6. <?php include("archivo_que_tiene_el_head.php"); ?>
  7. <body>
  8. .....
  9. </body>
  10. </html>
__________________
Verifica antes de preguntar.
Los verdaderos amigos se hieren con la verdad, para no perderlos con la mentira. - Eugenio Maria de Hostos