I want to browse all folders on my computer without using opendir(), in PHP.
In one of the comments, seeming says:
i want the user to select couple of files and upload rather than having multiple upload boxes. why are people downvoting this question?
Well, it is because your question is unclear and it is impossible to answer without the context of multiple file uploads.
The answer is: you can't do that with PHP. PHP runs serverside, so it can only give you a list of all the folders on the server; not the folders on the client side.
So the solution you need will either be