Removes file extensions and ignores non php files.