Please tell me, I can not get the extension of the file being downloaded.
<?php $uploaddir = '/home/aasinua/crm.contrust.club/uploads/'; $ext = pathinfo($uploaddir, PATHINFO_EXTENSION); if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploaddir . 'название' . $ext)) { print "File is valid, and was successfully uploaded."; } else { print "There some errors!"; } ?> What is the problem?