Best way to get a photo's file extension type in PHP
<p>I am re-building my photo-uploading section on my site, I am trying to learn as much as I can so I can do it securely but also with best performance.  MY site has aound 15-20 photos uploaded per minute usually</p>

<p>So is this method reliable for gettting the photo's file type, like jpg, gif, png?</p>

<pre><code> $fileType = $_FILES['image']['type'];
</code></pre>
