'; $mt2402 .= ''; $mt2402 .= ''.$txid.''; $mt2402 .= ''; $mt2402 .= ''.$user.''; $mt2402 .= ''.$password.''; $mt2402 .= ''; $mt2402 .= ''; $mt2402 .= ''.$shortcode.''; $mt2402 .= ''; $mt2402 .= ''; $mt2402 .= ''.$serviceid.''; $mt2402 .= ''; $mt2402 .= ''; $mt2402 .= '
'; $mt2402 .= ''.$ts.''; $mt2402 .= '
'; $mt2402 .= ''; $mt2402 .= ''.$msg.''; $mt2402 .= ''.$msgtype.''; $mt2402 .= ''.$encoding.''; $mt2402 .= ''; $mt2402 .= ''; $mt2402 .= '
'; $ch = curl_init(); curl_setopt( $ch, CURLOPT_URL, $url ); curl_setopt( $ch, CURLOPT_POST, true ); curl_setopt( $ch, CURLOPT_HTTPHEADER, array('Content-Type: text/xml')); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); curl_setopt( $ch, CURLOPT_POSTFIELDS, $mt2402 ); $result = curl_exec($ch); curl_close($ch); $date = date('d-m-Y H:i:s', time()); mysqli_query($MyConnect, "INSERT INTO tbl_mt_resend (url,content,logtime) VALUES ('$url','$mt2402','$date')"); echo $i++; } } ?>