Ver Mensaje Individual
  #2 (permalink)  
Antiguo 16/01/2012, 07:53
Avatar de repara2
repara2
 
Fecha de Ingreso: septiembre-2010
Ubicación: München
Mensajes: 2.445
Antigüedad: 13 años, 7 meses
Puntos: 331
Respuesta: como puedo visualizar todas las imagenes?

Evidentemente el problema es la ruta relativa de las imágenes pero no encuentro nada en la documentación, un parche sería:


Código HTML:
Ver original
  1. <?php
  2. $host = 'http://ipchicken.com';
  3. $opt = array('http' => array(
  4.                 'method' => "GET",
  5.                 'User-Agent: '.$_SERVER['HTTP_USER_AGENT']. '\r\n',
  6.                 'header' => array('Accept: '.$_SERVER['HTTP_ACCEPT']. '\r\n',
  7.                 'Content-type:  application/x-www-form- urlencoded\r\n',
  8.                 'Content-type: text/xml; charset=utf-8')) );
  9.  
  10. $context = stream_context_create($opt);
  11. echo $data = str_replace("images", $host."/images/", file_get_contents($host, false, $context));
  12. ?>
Salu2
__________________
Fere libenter homines, id quod volunt, credunt.