title: PHP SMS Code is not working from Server
body: <p>I want to send SMS from my website. The php code is working fine from localhost but not getting any response from web server. Have I missed to configure something in web server? Please help me..
  Here is the code given below...</p>
  
  <pre><code>&lt;?php
  
  $ch = curl_init("http://priority.muzztech.co.in:8080/sms?");
  curl_setopt($ch, CURLOPT_POSTFIELDS,"username=username&amp;password=password&amp;type=0&amp;dlr=1&amp;destination=+91xxxxxxxxxx&amp;source=XXXXXX&amp;message=test");
  curl_setopt($ch, CURLOPT_TIMEOUT,60);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, True);
  
  $contents = curl_exec ($ch);
  curl_close ($ch);
  
  Print($contents);
  
  /*if(stristr($contents,"Message Submitted")){
  $mstatus="SMS send Sucessfully ";}
  else {
  $mstatus="SMS send Failed";} 
  */
  
  ?&gt;
  </code></pre>
  
  <p>Edited the code to</p>
  
  <pre><code>&lt;?php
  
  $ch = curl_init("http://priority.muzztech.co.in:8080/sms?");
  
  curl_setopt($ch, CURLOPT_POST, True);
  curl_setopt($ch, CURLOPT_POSTFIELDS,"uusername=username&amp;password=password&amp;type=0&amp;dlr=1&amp;destination=+91xxxxxxxxxx&amp;source=XXXXXX&amp;message=test");
  curl_setopt($ch, CURLOPT_TIMEOUT,60);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, True);
  
  $contents = curl_exec ($ch);
  
  var_dump(curl_getinfo($ch));
  
  curl_close ($ch);
  Print($contents);
  /*if(stristr($contents,"Message Submitted")){
  $mstatus="SMS send Sucessfully ";}
  else {
  $mstatus="SMS send Failed";} 
  */
  
  ?&gt;
  </code></pre>
  
  <p>the page showing </p>
  
  <pre><code>&lt;pre&gt;array(20) { 
  ["url"]=&gt; string(40) "http://priority.muzztech.co.in:8080/sms?" 
  ["content_type"]=&gt; NULL 
  ["http_code"]=&gt; int(0) 
  ["header_size"]=&gt; int(0) 
  ["request_size"]=&gt; int(0) 
  ["filetime"]=&gt; int(-1) 
  ["ssl_verify_result"]=&gt; int(0) 
  ["redirect_count"]=&gt; int(0) ["total_time"]=&gt; float(21.226878) 
  ["namelookup_time"]=&gt; float(0.22723) 
  ["connect_time"]=&gt; float(0) 
  ["pretransfer_time"]=&gt; float(0) 
  ["size_upload"]=&gt; float(0) 
  ["size_download"]=&gt; float(0) 
  ["speed_download"]=&gt; float(0) 
  ["speed_upload"]=&gt; float(0)
  ["download_content_length"]=&gt; float(-1)
  ["upload_content_length"]=&gt; float(-1)
  ["starttransfer_time"]=&gt; float(0) 
  ["redirect_time"]=&gt; float(0) }&lt;/pre&gt;
  </code></pre>