I noticed that it\'s possible to run a file via PHP even if its extension wasn\'t .php, for example file test.xyz.php.whatever.zyx can be still run wit
.php
test.xyz.php.whatever.zyx
On Apache you could disable all dynamic handlers for the directory that contains the untrusted files.
SetHandler default-handler