Accessing SMS gateway from php application
<p>I have finally(with stackoverflow's help and Darhazer)..gotten to the final stage of my sms application.The last hurdle is that the gateway api is not sending the sms messages from my application.However when i place it directly on the address bar and call it,it works. I am using cURL in a loop to send it.Please point me in the right direction. My UPDATED code is:</p>

<pre><code>      &lt;?php

    include 'sms_connect.php';
    $sql="select name,number from sms";
    $result=mysqli_query($link,$sql) or die("Error in sms".mysqli_error($link));
    while($row=mysqli_fetch_assoc($result))
    {
     $name=$row['name'];
     $number=$row['number'];


 $url="http://xx1.yyw.wwe.bbb:8912/bulksms/
 bulksms?username=qqq&amp;password=zzz&amp;type=0&amp;dlr=Z&amp;destination=".urlencode($number)."&amp;source=bbb&amp;message=".urlencode($name);

   $ch = curl_init();


 curl_setopt($ch, CURLOPT_URL, $url);
 curl_setopt($ch, CURLOPT_HEADER, 0);

$results = curl_exec($ch);


    }
  curl_close($ch);
</code></pre>
