Why 'if(!getimagesize($_FILES['imagefile']['tmp_name']))' doesn't work?
<p>After the file is uploaded, why it always gives me the false even if it is image?<p></p>

<pre><code>if (!getimagesize($_FILES['imagefile']['tmp_name'])) { $boolean = false; }
</code></pre>

<p>By the way, it gives me this error:<br>
<code>Warning: getimagesize() [function.getimagesize]: Filename cannot be empty in...</code></p>
