Jump to content
Son zamanlarda artan kullanıcı hesap hırsızlıkları sebebiyle tüm kullanıcılara şifre sıfırlama maili gönderilmiştir. Lütfen güveli şifreler seçiniz. Mevcut e-mail adresinize erişemiyorsanız, en aşağıdaki destek linkinden bize ulaşınız. ×

Ams'de Php Dosyası Nasıl çalıştırılır?


PColik
 Share

Recommended Posts

Merhaba arkadaşlar. Elimde bir PHP dosyası var. İçeriği şöyle:

<?php
 
$xml_data ='<?xml version="1.0" encoding="UTF-8"?>'.
'<smspack ka="admin" pwd="password" org="title" >'.
'<mesaj>'.
       '<metin>text</metin>'.
        '<nums>number</nums>'.
'</mesaj>'.
'</smspack>';
 
 
$URL = "https://smsgw.mutlucell.com/smsgw-ws/sndblkex";
 
                 $ch = curl_init($URL);
                 curl_setopt($ch, CURLOPT_MUTE, 1);
                 curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
                 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
                 curl_setopt($ch, CURLOPT_POST, 1);
                 curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: text/xml'));
                 curl_setopt($ch, CURLOPT_POSTFIELDS, "$xml_data");
                 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
                 $output = curl_exec($ch);
                 curl_close($ch);
 
 
         echo "Mesaj gönderildi...<br>Sonuc: ";
         echo $output;
?>

Bu kod çalışıyor. Sitemde test ettim. Fakat bunu AMS'de nasıl çalıştırabilirim? Ya da çalıştırabilir miyim?

Bu arada web sitem kalıcı değil. Yani AMS hiç bir siteye bağlanmadan, internet erişimi olan herhangi bir bilgisayardan bunu çalıştırması lazım.

Edited by PColik
Link to comment
Share on other sites

Arkadaşlar bu arada şöyle de yapılsa olur. Benim yapmak istediğim mutlucell.com a bağlanıp oradaki kullanıcı adı ve şifremizle Input1 e girdiğimiz telefon numarasına vParagraph1 e girdiğimiz mesajı göndersin. Kendi sitesinde ki API ler arasında sadece PHP, JAVA ve C# için örnekler anlatılmış.

Link şu: 

Please register to see this content.

Kısacası ben bunu AMS de çalıştırmak istiyorum

Link to comment
Share on other sites

  • Editor

AMS kurulu değil. Ancak http.get ile php nin olduğu url adresini get methoduyla çağırıp username ve şifrede yollayabilirsin.

ve php tarafında echo ile yazdırdığın kısım ams ye geri dönecek olan yazıdır.

  • Like 1
Link to comment
Share on other sites

4 saat önce, pairs yazdı:

AMS kurulu değil. Ancak http.get ile php nin olduğu url adresini get methoduyla çağırıp username ve şifrede yollayabilirsin.

ve php tarafında echo ile yazdırdığın kısım ams ye geri dönecek olan yazıdır.

Hocam çok sağol ama AMS ve PHP hakkında o kadar bilgim yok. AMS yi hala forumda ki konulara bakarak kullanıyorum. :/

Kısacası anlattığın şeyi nasıl yapacağımı bilmiyorum :(

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...