title: Getting a file pointer from file descriptor
body: <p>In PHP 5.2.3, "fdopen" was used to read/write to a file descriptor that's opened by another application.</p>
  
  <pre><code>fdopen(&lt;fileDescriptorId&gt;,"rw");  //It worked fine with PHP 5.2.3
  </code></pre>
  
  <p>After upgrading PHP to 5.3.2, it's throwing "<code>undefined reference to 'fdopen' function</code>".</p>
  
  <p>Please suggest whats the replacement for this in PHP 5.3.2 or any workaround.</p>