title: Can't get 'http put' content in PHP
body: <p>framework is here
  <a href="http://luracast.com/products/restler/" rel="nofollow">http://luracast.com/products/restler/</a></p>
  
  <p>i'm using restler as restful api for my work,
  when i use backbone model save to a url, it sends and update my data as json by using 'HTTP PUT' request method, and i want to get a response from what i've putted...</p>
  
  <p>if it's a HTTP POST request method i can use</p>
  
  <pre><code>// to getting content from a POST
  $post_data = json_decode(file_get_contents('php://input'), true);
  </code></pre>
  
  <p>to get my content, but cant get anything from HTTP PUT</p>
  
  <pre><code>// can't get anything from a PUT
  function putpatients($id) {
      $post_data = file_get_contents('php://input');
      $post_data = json_decode($post_data, true);
      echo $post_data['name'];
  }
  </code></pre>
  
  <p>the browser response blank</p>
  
  <p>how do i return my data as json ???</p>