Sms Sending Script

SMS stands for Short Message Service which is also sending short text message one cell to another cell phone or from web site to another cell phone.

In the following PHP Sending SMS Scripts is used to send sms from website to cell phone. If you need this script copy and past your web page also fill appropriate cell phone numer,name and short message.


<?php
$Cell_Number = 'Cell Phone Number';
$Name = 'Name';
$Message = 'Short Message';

$murl = "http://www.smsdomain.com/api/sentsms.php?username='username'&password='admin_sms'&sender='from_name'&to='to_number'&message='short_message'";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $murl);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);

$response = curl_exec($ch);
curl_close($ch);

?>
$murl = "http://www.smsdomain.com/api/sentsms.php?username='username'&password='admin_sms'&sender='from_name'&to='to_number'&message='short_message'";

In the above line $murl variable is used to store sms domain deatails also included username and password.


$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $murl);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);

In the above curl_init() function is initialize a new session for sms scripts.The curl_setopt() function is set options for sms scripts.

$response = curl_exec($ch);
curl_close($ch);

In the above curl_exec() function is simply to execute session the for scripts. curl_close() function is close a all session for sms scripts.

Example :

$Cell_Number = " 9942067535 ";
$Name = " Dhana ";
$Message = " HI ";

Free Download Script :

If you need Sms Sending Script click and download from following link.

Download




Content