Ver Mensaje Individual
  #4 (permalink)  
Antiguo 29/12/2011, 09:41
climax2006
 
Fecha de Ingreso: abril-2006
Mensajes: 240
Antigüedad: 18 años
Puntos: 1
Respuesta: problema con curl al enviar datos dentro de un bucle, se me repiten

Cita:
Iniciado por informacionsys Ver Mensaje
hola

ya probaste utilizando for...
Código PHP:
Ver original
  1. $tmpCelularT = array(
  2.    "77494407",
  3.    "12345567",
  4.    "42432423"
  5. );
  6.  
  7. $cant_array = count($tmpCelularT);
  8.  
  9.  
  10. for($i=0;$i<$cant_array;$i++){
  11.            $smsv  = $tmpCelularT[$i];
  12.                 $urlSms        = "http://200.27.68.59:8083/comiriego_gateway/recibe?nro_corto=3030&tasacion=0&clave=admtc.2011&nro_movil=".$smsv."&texto=hola+mundo"
  13.                
  14.                 $handler     = curl_init($urlSms);
  15.                 $reshandler    = curl_exec($handler);
  16.                    
  17.                 curl_close($handler);                  
  18.            
  19.     }
cambie el foreach por el for y funko, no se repiten ahora.
gracias