file name without extension
php
Solution
$filename = pathinfo($_FILES['file']['name'], PATHINFO_FILENAME);
pathinfo is a core PHP function since 4.0.3, and the PATHINFO_FILENAME option was added in 5.2.
Problem
Is there any method of obtaining the name of the file uploaded to a server without extension, in PHP? I used the `$_FILES['file']['name']` but it returns the extension too.