<?php
ini_set('error_reporting',E_ALL);
ini_set('display_errors',1);
$url = "http://103.250.30.4/SendSMS/sendmsg.php?uname=f.GAZZAB&pass=sms1234&send=GAZZAB&dest=8147943821&msg=Testing&intl=0";
$headers = array("Content-Type:multipart/form-data"); // cURL headers for file uploading
$ch = curl_init();
$options = array(
CURLOPT_URL => $url,
CURLOPT_HEADER => true,
CURLOPT_POST => 1,
CURLOPT_HTTPHEADER => $headers,
CURLOPT_RETURNTRANSFER => true
); // cURL options
curl_setopt_array($ch, $options);
$result=curl_exec ($ch);
echo $result;
echo json_decode($result, TRUE);
echo curl_error($ch);
echo '<br>';
echo $result['mid'];
curl_close ($ch);
?>