Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/01/2010, 12:41
Avatar de jamesjara
jamesjara
 
Fecha de Ingreso: mayo-2008
Ubicación: san jose
Mensajes: 449
Antigüedad: 16 años
Puntos: 7
Respuesta: Mostrar datos externos con Curl

claro creo que con un ejemplo tu entenderias
Cita:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $login_page);
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, 'user='.$user.'&pass='.$pass.'&Submit=Ingresar');
curl_setopt ($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_exec ($ch);

//LUEGO YA DEBES EXTRAER LOS DATOS, parseando el codigo.. no hay otra manera...
Obviamente si el banco tiene un webservice te conectas a el y no necesita usar curl
__________________
X7CLOUD El webservice latino!
Compatible
con mysql,sql,sqlitte.
Compatible con extjs , sencha , smargwt, Gwt , Jquery , Charts, Streaming.