PHP Api sorunu
bedavasms
Kayıtlı Üye
21.10.2014 23:34
1
Merhaba, sms gönderimi sağlayamıyorum bir türlü kodlara bir bakın nerede sorn var çünkü kullanıcı adı, şifre veya diğer herhangi birini yazmayınca eksik hatası geliyor ancak hepsini yazınca durum algılanamadı diyor.
$ka = "kadı";
$pw = "sifre";
$no="5087882723";
$mesaj="denememesaji";
$sb='';
$postfields = "ka=$ka&sf=$sf&gn=$no&sm=$mesaj&sb=";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://www.yoncu.com/apiler/sms/gonder.php");
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)');
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLINFO_HEADER_OUT, true);
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_AUTOREFERER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);
$result = curl_exec($ch);
curl_close($ch);
echo $result;
$ka = "kadı";
$pw = "sifre";
$no="5087882723";
$mesaj="denememesaji";
$sb='';
$postfields = "ka=$ka&sf=$sf&gn=$no&sm=$mesaj&sb=";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://www.yoncu.com/apiler/sms/gonder.php");
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)');
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLINFO_HEADER_OUT, true);
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_AUTOREFERER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);
$result = curl_exec($ch);
curl_close($ch);
echo $result;
Inicie sesión para responder
Debe iniciar sesión para responder a este tema.
Inicio de sesión de miembrosUnirse a la discusión
Inicie sesión o regístrese para abrir un nuevo tema o responder.
Consejo del Día
CAMBIAR
La protección DDoS de Capa 7 incluye un avanzado motor de verificación JS para filtrar el tráfico de bots.
CONSEJO 1/4