Ver Mensaje Individual
  #4 (permalink)  
Antiguo 16/11/2011, 07:34
Faraday28
 
Fecha de Ingreso: marzo-2011
Mensajes: 106
Antigüedad: 13 años, 1 mes
Puntos: 4
Respuesta: IFrame con una pagina externa

Hola, este es el codigo que he hecho:

a.php
<title>xxxxxxxxxxxxx</title>
<?php
$url = curl_init("http://www.google.es");
echo "<style>body {background-color: red !important;}</style><base href='http://www.google.es/'>";
$salida = curl_exec ($url);
curl_close($url);
?>


b.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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
</head>
<body>
<iframe><? include("a.php") ?></iframe>
</body>
</html>

Pero no aparece nada, que debería hacer para que funcione, lo que quiero que haga es que dentro del iframe aparezca la pagina de google formateada.