How to getimagesize() after file_get_contents()?
<p>Unless I am mistaken, doing it the obvious way would download the file twice.</p>

<pre><code>$image = file_get_contents($location);
$checkImage = getimagesize($location);
</code></pre>

<p>I was wondering how I could do it without downloading twice. Placing <code>$image</code> inside <code>get_image_size()</code> doesn't work so I am not sure what to do. I found my tmp folder but when I ran the page to test I didn't see anything show up there so I'm not sure where to go with this. if I need to specify the actual location of <code>$image</code> (I think that is what I need to do) I am not sure how to find that.</p>
