how to get file name without extension from request in php code example Example: php get file extension from filename $ext = pathinfo($filename, PATHINFO_EXTENSION);