Hi,

I am working on this web-based upload in PHP.
I'm stuck at this current problem.

How do I check file extensions and allow only certain type of files being uploaded?

So it'll forbid all files like .php to be uploaded. even .php.php would be forbidden. (just some trick i've seen people trying to beat the script)

Thanks.
Any replies would be gretaly appreciated.