PHP Code: 
$folderx str_replace(' ''.'basename($thefolder));