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 : 18.118.151.112
<?php
function sendsmaapi($username,$password,$from,$to,$text,$category)
{
$url = "http://203.212.70.200/smpp/sendsms?";
$url .="username={$username}&password={$password}";
$url .="&to={$to}";
$url .="&from={$from}";
$text = urlencode($text);
$url .="&text={$text}";
if($category !='')
$url .="&category={$category}";
return file_get_contents($url);
}
//http://203.212.70.200/smpp/creditstatus.jsp?user=log03&password=log03124 check credits
/* $url = "http://203.212.70.200/smpp/sendsms?username=log03&password=log03124&to=9008818989&from=CUGUNI&text=".urlencode('Dear Sir / Madam, this is to test CUGUN');
echo file_get_contents($url);
*/
/*
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
// Set so curl_exec returns the result instead of outputting it.
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// Get the response and close the channel.
curl_setopt($ch, CURLOPT_HEADER, false);
$response = curl_exec($ch);
curl_close($ch);
echo $response; */
//header("Location:$url");
?>
|