Perrotekel Posted August 27, 2010 Share Posted August 27, 2010 Hola tengo un servidor dedicado en 1and1 y no me funciona ninguna de estas dos funciones, podeis decirme como hacer que funcionen o de que manera traerme una imagen de una url que me funcione?.Este es mi codigo $url="http://xxxxxxx"; //Metodo 1 $content = file_get_contents($url); echo "prueba1:".$content; //Metodo 2 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_URL, $url ); $html = curl_exec ( $ch ); curl_close($ch); echo "prueba2:" . $html; Link to comment Share on other sites More sharing options...
Perrotekel Posted August 27, 2010 Author Share Posted August 27, 2010 Me dicen los de 1and1 que ponga un php.ini dentro de la carpeta activando la opcion pero no se si lo hago bien.Pongo esoallow_url_fopen = Onextension=curl.sodebo poner algo mas? Link to comment Share on other sites More sharing options...
Perrotekel Posted August 27, 2010 Author Share Posted August 27, 2010 Bueno ya he encontrado el problema, si me funcionan las funciones pero solo por el puerto 80 y yo necesito otro puerto, sabeis alguna manera de hacerlo???Gracias. Link to comment Share on other sites More sharing options...
Recommended Posts