PHP - Script No Funciona Bien

 
Vista:

Script No Funciona Bien

Publicado por flashnet (2 intervenciones) el 12/09/2008 10:16:32
Buenas tengo un pequeño problema, es que al ejecutar este script funciona bien:

<?php

// create a new curl resource
$ch = curl_init();

// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, "http://127.0.0.1:80");
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

// grab URL, and print
curl_exec($ch);

?>

Me sale lo de The AppServ Open Project - 2.5.9 for Windows ... pero al hacer esto no me sale nada

<?php

// create a new curl resource
$ch = curl_init();

// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, "http://google.com");
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

// grab URL, and print
curl_exec($ch);

A que puede ser debido?
Gracias
?>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:Script No Funciona Bien

Publicado por juan (12 intervenciones) el 12/09/2008 16:23:19
curl_setopt($ch, CURLOPT_URL, "http://google.com");

intenta ponerle el www
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar