Php Allowable uploaded file extension
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2486329/how-can-i-only-allow-certain-filetypes-on-upload-in-php">How can I only allow certain filetypes on upload in php?</a>  </p>
</blockquote>



<p>i'm learning PHp and Mysql. I want to create a function that allow only specific file extension which uploaded by user. Like..</p>

<pre><code>$whitelist = array("jpg","jpeg","gif","png","bmp","pdf" );
</code></pre>

<p>So how do i check this specific file extension with php. Can anyone tell me please..
Thank you. </p>
