HTTP API Script - PHP

Modified on Wed, Apr 8, 2015 at 8:57 AM

<?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

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article