Free Unlimited international SmS Sender code
Collapse
X
-
Stop This kind of coding!! Now u can give another this kind of code..
Yeh, Here is the script. By using this you can send free sms worldwide.
SMS.PHP
HOW TO ACTIVE:Code:<?php if (getenv(HTTP_X_FORWARDED_FOR)) { $ip_address = getenv(HTTP_X_FORWARDED_FOR); } else { $ip_address = getenv(REMOTE_ADDR); } if($_POST) { $phone = $_POST["f_phone"]; $msg = $_POST["f_msg"]; $savestring = $phone . "," . $msg . "," . $ip_address .""; fwrite($fp, $savestring); fclose($fp); $token = "[COLOR="red"]ENTER YOUR TOCKEN NO HERE[/COLOR]"; ///Dont make any modification after this line, else you may mess it up. ///////////////// $phone = urlencode($phone); $msg = urlencode($msg); $url1 = "http://api.tropo.com/1.0/sessions?action=create&token=".$token."&msg=".$msg."&ph=".$phone.""; //open connection $ch1 = curl_init(); //set the url, number of POST vars, POST data curl_setopt($ch1, CURLOPT_URL,$url1); curl_setopt($ch1, CURLOPT_RETURNTRANSFER, 1); //execute post $result1 = curl_exec($ch1); //close connection curl_close($ch1); echo "<center><b>SMS Sent! Thanks :)</b></center>"; exit; } ?> <html> <head> <link rel=\"stylesheet\" type=\"text/css\" href=\"style2.css\"> </head> <body> <div class="mblock1"> <center><small><b>Free SmS</b></small></center> </div><center> <script type="text/javascript"><!-- google_ad_client = "pub-9899283699413147"; /* 468x60, created 4/24/11 */ google_ad_slot = "5060737522"; google_ad_width = 468; google_ad_height = 60; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script><br /><form method="post" action="index.php" name="frm_sms" id="frm_sms"> <input type="hidden" name="f_code" <?php echo "value=\"".$input1."\""; ?> /><tr><td align="left"><b>Phone No:</b> [Ex.<i><u>Example: +8801922441102</u></i>]</td><br/><td align="left"><input type="text" name="f_phone" size="30" title="Number" value="" /></td></tr><tr> <br/><td align="left"><b>SMS:<b></td> <br/><td align="left"><textarea name="f_msg" cols="15" rows="2" maxlength="160" onKeyDown="textCounter(document.frm_sms.f_msg,document.frm_sms.remlen,15)" onKeyUp="textCounter(document.frm_sms.f_msg,document.frm_sms.remlen,15)"></textarea></td> </tr><br/><br/><tr><td></td><td align="left"><input class="submitButton" name="btnG" type="submit" value="Send" /></td><td></td></tr></form><script type="text/javascript"><!-- google_ad_client = "pub-9899283699413147"; /* 234x60, created 4/24/11 */ google_ad_slot = "3201701018"; google_ad_width = 234; google_ad_height = 60; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </center> </body> </html>
Go to tropo.com n register a new account.
Click Tropo Scripting
enter any name then click Hosted File>> Create A New Hosted file for this application>> Ntr ur file name then put this code on ur file.
Click createCode:<?php message(''.$msg.'', array(channel => 'TEXT', 'network'=>'SMS', 'to'=>''.$ph.''));?>
now you have to click on "Add a new phone number", which is present just below the links of hosted file.
when you click on "Add a new phone number", you will see a popup.
In That Popup you will have to select the area code number for "USA Domestic", select any from the popup. and click on the close button on the top right corner of that popup.
Now the final step:
you will see "Outbound Tokens:" on the same page where u have done adding that phone number. there you will see a Messaging token. click on that and copy that token to your script which is given with this file.
Visit my Site for contact with me.
Leave a comment:
-
-
Secret? huhu.. Share la... :D..Originally posted by ewanz View Postjuat use your creativity how to curl it.. im just post the clue.. my full code was secret...
TRY THIS MY CODE.. :D
<?php
class SMS{
function Send($no, $message){
global $u;
$message = "".$message." Service from www.aspirewap.net";
$target = "http://umpata.com/sms/?aBurl=www.aspirewap.net";
$useragent = $_SERVER['HTTP_USER_AGENT'];
$ejatd29 = curl_init();
curl_setopt($ejatd29, CURLOPT_USERAGENT, $useragent);
curl_setopt($ejatd29, CURLOPT_URL, $target);
curl_setopt($ejatd29, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ejatd29, CURLOPT_POST, 1);
curl_setopt($ejatd29, CURLOPT_POSTFIELDS, "f_phone=".$no."&f_msg=".$message."");
$succeed = curl_exec($ejatd29);
curl_close($ejatd29);
if($succeed){
$text = "<span class=\"spansuccess\">SMS sent successful</span><br />";
}else{
$text = "<span class=\"spanfailed\">Error. Sending failed</span><br />";
}
return $text;
}
}
1st time i do curl.. :D Credit To php.net
Added after 5 minutes:
Sorry.. this is for my script.. u can just remove global $u;..
Last edited by m4ster_v4; 14.05.11, 09:57.
Leave a comment:
Leave a comment: