title: how to get the status of twillio sending sms
body: <p>i m trying to send a SMS from my trail Twilio account. so please help to get sms response/status</p>
  
  <pre><code>$client = new Client(TWILIO_SID, TWILIO_TOKEN);
      $client-&gt;messages-&gt;create(
          $mobile,
          array(
              'from' =&gt; TWILIO_FROM_NUMBER,
              'body' =&gt; $mobile_message,
              //'statusCallback' =&gt; "https://requestb.in/v9uqy6v9"
              'statusCallback' =&gt; base_url()."sms_status.php"
          )
      );
  
      //$status = file_get_contents('https://requestb.in/v9uqy6v9');
      $status = file_get_contents(base_url()."sms_status.php");
  </code></pre>
  
  <p>when i run the above code i got error:</p>
  
  <pre><code>Message: file_get_contents(http://.../sms_status.php): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
  </code></pre>
  
  <p>while i manually browse the sms_status.php file url than it's not got any error</p>
  
  <p>i also follow this  link <a href="https://stackoverflow.com/questions/9430003/how-to-get-notified-when-sms-status-changes-from-queued-to-sent">How to get notified when SMS Status changes from &#39;Queued&#39; to &#39;Sent&#39;?</a></p>
  
  <p>so please help me to resolve above problem and also define what will be format of output like json/text/array.....</p>