Ver Mensaje Individual
  #6 (permalink)  
Antiguo 14/01/2010, 16:14
paynalton
 
Fecha de Ingreso: enero-2010
Mensajes: 152
Antigüedad: 14 años, 3 meses
Puntos: 5
Respuesta: IPN con dineromail (enviar XML con PHP)

Vale, muchas gracias por el tip, curl funcionó de maravillas. he aquí un trozo del script:

Código:
$post="DATA=".urlencode($post);
$error=1;
$x=0;
$post=str_replace("\n","",$post);
$post=str_replace("\t","",$post);
$ch = curl_init($dmurl);
while($error!=0)
	{
	curl_setopt ($ch, CURLOPT_POST, 1);
	curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);
    	curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
	$resultado = curl_exec($ch);
	$error = curl_errno($ch);
	if($x>5)
		{
		break;
		}
	$x++;
	}
curl_close($ch);