get actual name of a file while uploading php code example Example: php current file name basename(__FILE__, '.php');