Viewing file: groupsmsdata.php (1.13 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php // sms $message= $_POST[messages]; $replacemessage = str_replace(' ', '%20', $message); $mobile= $_POST[mobiles]; $user = "mitmsekhar"; $pass = "mitm123sekhar"; $mob ='91'.$mobile;
// Can come from a database $msg = $replacemessage; $url = "http://login.3way-solutions.com/vendorsms/pushsms.aspx?user=$user&password=$pass&msisdn=$mob&sid=SMSWAY&msg=$msg&fl=0&gwid=2";
$xml = file_get_contents($url);
$getUrl = "http://login.3way-solutions.com/vendorsms/pushsms.aspx?user=$user&password=$pass&msisdn=$mob&sid=MITMED&msg=$msg&fl=0&gwid=2"; ;
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $getUrl); curl_setopt($curl, CURLOPT_HTTPHEADER, array('Accept: application/json')); curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($curl, CURLOPT_USERPWD, $user . ":" . $pass); curl_setopt($curl, CURLOPT_HTTPGET, TRUE); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($curl); $httpCode = curl_getinfo($curl, CURLINFO_HTTP_CODE); $responseBody = json_decode($response); curl_close($curl);
?>
<script type="text/javascript"> window.location.href = "particularsms.php" </script>
|