Possible Duplicate:
Is it possible to execute PHP with extension file.php.jpg?
I accidentally left a fileupload to my site, and it got hacked (STUPID ME). The hacker had uploaded a file index.php.jpg with the uploader, and simply accessed my site (it was a shell99 script) with it, but I can't understand why it will work. Someone smart enough to explain this?