Here is the code that you can put in your .htaccess file within a folder to disable php file execution. It is very useful in the WordPress's wp-content/uploads directory for making sure files that get uploaded are not executable.
<Files *.php> deny from all </Files>