A Heart in Love with Beauty Never Grows Old...!




News Update :
Showing posts with label SMS. Show all posts
Showing posts with label SMS. Show all posts

Send sms from website to mobile

Not work this sendsms.php


<html>
 <body>
   <h1>My SMS form</h1>
   <form method=post action='sendsms.php'>
   <table border=0>
   <tr>
     <td>Recipient</td>
     <td><input type='text' name='recipient'></td>
   </tr>
   <tr>
     <td>Message</td>
     <td><textarea rows=4 cols=40 name='message'></textarea></td>
   </tr>

<tr>
     <td>Date to send</td>
      <td><input type='text' name='date'></td>
   </tr>

   <tr>
     <td> </td>
     <td><input type=submit name=submit value=Send></td>
   </tr>
   </table>
   </form>
 </body>
</html>




send.php file


<?php

########################################################
# Login information for the SMS Gateway
########################################################

$user = "mobilenumber;
$password = "password";
$url = "http://www.smszone.in/sendsms.asp?";
$page = "SendSmsBulk";


########################################################
# Functions used to send the SMS message
########################################################
function httpRequest($url){
    $pattern = "/http...([0-9a-zA-Z-.]*).([0-9]*).(.*)/";
    preg_match($pattern,$url,$args);
    $in = "";
    $fp = fsockopen("$args[1]", $args[2], $errno, $errstr, 30);
    if (!$fp) {
       return("$errstr ($errno)");
    } else {
        $out = "GET /$args[3] HTTP/1.1\r\n";
        $out .= "Host: $args[1]:$args[2]\r\n";
        $out .= "User-agent: PHP client\r\n";
        $out .= "Accept: */*\r\n";
        $out .= "Connection: Close\r\n\r\n";

        fwrite($fp, $out);
        while (!feof($fp)) {
           $in.=fgets($fp, 128);
        }
    }
    fclose($fp);
    return($in);
}



function window.open($phone, $msg, $scheduledate, $debug=false){
      global .$page,$user,$password,$url;

      $url = 'page='.$page;
      $url = '&username='.$user;
      $url.= '&password='.$password;
      $url.= '&number='.urlencode($phone);
      $url.= '&message='.urlencode($msg);
       $url.= '&scheduledate='.urlencode($date);
     

      $urltouse =  $url.$url;
      if ($debug) { echo "Request: <br>$urltouse<br><br>"; }

      //Open the URL to send the message
      $response = httpRequest($urltouse);
      if ($debug) {
           echo "Response: <br><pre>".
           str_replace(array("<",">"),array("&lt;","&gt;"),$response).
           "</pre><br>"; }

      return($response);
}

########################################################
# GET data from sendsms.html
########################################################

$phonenum = $_POST['recipient'];
$message = $_POST['message'];
$scheduledate = $_POST['date'];
$debug = true;

window.open($phonenum,$message,$scheduledate,$debug);

?>

.

Long Distance Love

Don’’t waste time giving someone a second chance, when there is someone better waiting for their first...

You will never know the power of yourself until someone hurts you badly...

---

Who would you chose? The one that you love or the one that loves you? 

Long Distance Love...!

How do you wait 
At least 3 years 
For a possible soul mate 
But have no fears 

For you, I open my gate 
And wish that you were here 
But you live in another planet 
Yet another reason to fear 

But I fear because I care 
And I care because I love you 
It's a kind of love that is rare 
And shared by very few 

My love, in every form, is undying 
And to lose you in anyway, would mean I'm dying 
You are a gift greater than everything 
And for you, I'll do anything 

I'll wait for you, over these next few years 
And together we'll overcome our greatest fears 
.

100+ sites for free SMS (free sms from pc to mobile)





















































































































































FREE SMS SOFTWARE


.

free sms from pc to mobile

.
You are the essence of essence....
Be sure of what you look for...!
It is you... It is in you...!

Online Radio...!