0xV3NOMx
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.219.107.243


Current Path : /var/www/misc/public_html/studentportal_old/
Upload File :
Current File : /var/www/misc/public_html/studentportal_old/sendsmsapi.php



<?php
ini_set("allow_url_fopen", 1);

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);


  // Generate curl request
  $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;
}
?>