Image File Size in Php
<p>I am trying to get the file size of an image. If I upload below a 5 MB size image, then this function is properly calculating image size. But if the image file size is exceeded then it is not calculating image file !</p>

<p>$size = filesize($_FILES['file']['tmp_name']);</p>

<p>I am not understanding what the problem is.</p>
