Getting filetype/filesize from stream
<p>I'm getting file contents from a stream with </p>

<pre><code>$src_file = file_get_contents("php://input");
</code></pre>

<p>but I need to know the filetype and filesize of the file as well. This doesn't work:</p>

<pre><code>$src_type = filetype("php://input");
$src_size = count($src_file);
</code></pre>

<p>I suppose I could write the file and then call filetype/filesize on that, but is there a way to get filetype and filesize from a stream or contents of a variable?</p>
