title: In Godaddy,Bulk SMS sending stops in middle
body: <p>In Godaddy,Bulk SMS sending stops in middle and gives internal server error.. i m trying to send bulk for 600 peoples but sms is sending only for approx 100 peoples and then it shows internal server error  </p>
  
  <p>if($_REQUEST['modfunc']=='save')</p>
  
  <p>{</p>
  
  <pre><code>foreach($_REQUEST['people'] as $people_id=&gt;$yes)
  
  
  {
  </code></pre>
  
  <p>$user1=mysql_query("select smsuser from gold where id='".Usergold()."'");</p>
  
  <pre><code>        $user2=mysql_fetch_row($user1);
  
          $user=$user2[0];
  </code></pre>
  
  <p>$pwd1=mysql_query("select smspwd from gold where id='".Usergold()."'");</p>
  
  <pre><code>        $pwd2=mysql_fetch_row($pwd1);
  
          $pwd=$pwd2[0];
  </code></pre>
  
  <p>$send1=mysql_query("select senderid from gold where id='".Usergold()."'");</p>
  
  <pre><code>        $send2=mysql_fetch_row($send1);
  
          $sender=$send2[0];
  
  
          $xyz=mysql_query("select phone from people where people_id='$people_id'");
  
          $xyz2=mysql_fetch_row($xyz);
  
          $pno=$xyz2[0];
  </code></pre>
  
  <p>// create a new cURL resource</p>
  
  <p>$ch = curl_init();</p>
  
  <p>// set URL and other appropriate options
  curl_setopt($ch, CURLOPT_URL, "<a href="http://xxxxxx.com/api/sendmsg.php?user=" rel="nofollow">http://xxxxxx.com/api/sendmsg.php?user=</a>$user&amp;pass=$pwd&amp;sender=$sender&amp;phone=$pno&amp;text=".urlencode($_REQUEST['MESSAGE'])."&amp;priority=ndnd&amp;stype=normal");</p>
  
  <p>curl_setopt($ch, CURLOPT_HEADER, 0);</p>
  
  <p>// grab URL and pass it to the browser
  curl_exec($ch);</p>
  
  <p>// close cURL resource, and free up system resources
  curl_close($ch);</p>
  
  <pre><code>}
  unset($_REQUEST['modfunc']);
  
  $note = _("SMS is sent to the selected people.");
  </code></pre>
  
  <p>}</p>