php determine if a variable is an open file handle
<p>i am currently using <code>is_resource()</code>to determine whether a variable is an open file handle.</p>

<p>Is this correct or is there an alternative (better) way to do this?</p>
