Ver Mensaje Individual
  #8 (permalink)  
Antiguo 16/11/2013, 15:05
Avatar de AlejandroGalvez
AlejandroGalvez
 
Fecha de Ingreso: noviembre-2013
Mensajes: 189
Antigüedad: 10 años, 5 meses
Puntos: 49
Respuesta: Cosa rara con includes y file_get_contents

Ok, entonces tu problema es abrir un archivo que está en "otro hosting". Asegurate que en hosting_segundo tengas activado [URL="http://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen"]allow_url_fopen[/URL] en php.ini. Aunque lo mejor sería que utilizaras [URL="http://php.net/manual/en/function.fsockopen.php"]fsockopen[/URL] o, recomendado, [URL="http://php.net/manual/en/book.curl.php"]cURL[/URL].

Pero si solo vas a mostrar una imagen... Por lo que más quieras utiliza <img> y olvídate del resto

EDIT: [URL] No me funciona... Mientras tanto:

allow_url_fopen: http://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen
fsockopen: http://php.net/manual/en/function.fsockopen.php
cURL: http://php.net/manual/en/book.curl.php

Última edición por AlejandroGalvez; 16/11/2013 a las 15:08 Razón: Enlaces no funcionan