I wan’t to search a filename for example like this string:
$filetype = "file.php.jpg";
And then i want to search if it finds php in that string, then return false;
Now if a filename is named php-logo.jpg i don’t want it to be denied. Maybe we should consider searching for .php. in the string?
Why do you complicate it so much? 🙂