v2.5.2
Giriş yap

Netgsm gönderilen smsleri kayıt ettirme

emmir
445 defa görüntülendi

Sms gönderdiğim numaraları ve mesajları veritbanına nası kayıt ettiririm

emmir
1089 gün önce

Hocam merhaba şöyle api bilgim 0 youtubede bir videodan görüp aldım kodları veritbanı oluşturdum INSERT INTO alanını nereye eklemeliyim

<-- smsgonderim.php -->
    
    <?  

function XMLPOST($PostAddress,$xmlData)
{

	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL,$PostAddress);
	curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,1);
	curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,0);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
	curl_setopt($ch, CURLOPT_HTTPHEADER, Array("Content-Type: text/xml"));
	curl_setopt($ch, CURLOPT_TIMEOUT, 30);
	curl_setopt($ch, CURLOPT_POSTFIELDS, $xmlData);
	$result = curl_exec($ch);
	return $result;

}
$username = 'bilgilerim';
$password = 'bilgilerim';
$orgin_name = 'bilgilerim';

$xml="<mainbody>

<header>
	<company>bilgilerim</company>        
    <usercode>bilgilerim</usercode>
    <password>bilgilerim</password>
    <type>1:n</type>
    <msgheader>bilgilerim</msgheader>
    </header>
	<body>
	<msg><![CDATA[{$mesaj}]]></msg>
	<no>{$tel}</no>
	</body>

</mainbody>";
?>

<-- smsgonderim.php -->