Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.15.202.169
<?php
function sendsmaapi($username,$password,$from,$to,$text,$category)
{
$url = "http://www.myvaluefirst.com/smpp/sendsms?";
$url .="username={$username}&password={$password}";
$url .="&to={$to}";
$url .="&udh=0";
$url .="&from={$from}";
$text = urlencode($text);
$url .="&text={$text}";
$url .="&dlr-mask=1&dlr-url";
if($category !='')
$url .="&category={$category}";
//echo $url;
//return file_get_contents($url);
$session = curl_init($url);
curl_setopt($session, CURLOPT_HEADER, false);
//curl_setopt($session, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_2);
curl_setopt($session, CURLOPT_RETURNTRANSFER, true);
// obtain response
$response = curl_exec($session);
curl_close($session);
// print everything out
return $response;
}
?>
|