title: Why filename.php.jpg will work as a PHP file?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/8025236/is-it-possible-to-execute-php-with-extension-file-php-jpg">Is it possible to execute PHP with extension file.php.jpg?</a>  </p>
  </blockquote>
  
  
  
  <p>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?</p>