Possible Duplicate:
PHP list of specific files in a directory
I want to list all the directories and files that are there in my directory. How i can do this? Below is my code
if(opendir("user_files/".$uid."/")) {
var_dump(readdir("user_files/".$uid."/"));
}