<?php


$user="demodemo";

$mob_no = "919090909090";

$pwd="demodmeo";

$msg="hi%20everyone"; //your message

$str = trim(str_replace(' ', '%20', $msg));

$url="http://login.smsgatewayhub.com/smsapi/pushsms.aspx?user='.$user.'&pwd='.$pwd.'&to='.$mob_no.'&sid=WEBSMS&msg='.$msg.'&fl=0&gwid=2";

// create a new cURL resource

$ch = curl_init();

// set URL and other appropriate options

curl_setopt($ch, CURLOPT_URL,$url);

// grab URL and pass it to the browser</div>

curl_exec($ch);

// close cURL resource, and free up system resources

curl_close($ch);

?>


Note : Please note that some of the above code has been supplied to SMSGATEWAYHUB by clients. As such, accuracy is not guaranteed by SMSGATEWAYHUB