Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/06/2010, 10:56
foroworld
 
Fecha de Ingreso: mayo-2009
Mensajes: 153
Antigüedad: 15 años
Puntos: 1
Enlace externos

Hola a todos,

Buscando como cargar enlaces externos en una página con php, he visto esto:

Código PHP:
<!-- Manual de PHP de WebEstilo.com -->
<html>
<head>
   <title>Ejemplo de PHP</title>
</head>
<body>

<A HREF="ejem06b2.phtml?dire=http://www.webestilo.com">www.webestilo.com</A><BR><BR>
<A HREF="ejem06b2.phtml?dire=http://www.terra.es">www.terra.es</A>

</body>
</html>

Ejecutar ejemplo Ver código fuente


ejem06a2.phtml
<!-- Manual de PHP de WebEstilo.com -->
<!-- frames -->
<FRAMESET ROWS="100,*">
<FRAME NAME="arriba" SRC="ejem06b3.html" MARGINWIDTH="10" MARGINHEIGHT="10" SCROLLING="auto" FRAMEBORDER="0">
<FRAME NAME="abajo" SRC="<?php echo $dire ?>" MARGINWIDTH="10" MARGINHEIGHT="10" SCROLLING="auto" FRAMEBORDER="0">
</FRAMESET>
El problema es que no quiero utilizar frames, según tengo entendido tb se puede hacer, de forma muy sencilla y sin utilizar frames, a través de includes.

Alguién me podría explicar como, y si hay alguna otra forma para cargar enlaces externos en una página web???

Muchas gracias.