Im currently using the method you describe to create and populate a drop own list. But I have to run it over a few pages because the some files are in the root and some are in folders. So at the moment i have select which folder I want to look in on the first page then select the file on the next page to build up the path. It works, but I was hoping to combine the pages using some sort of pop up window that shows a full directory tree so i can drill down to the file i want in one go. Sorry I wasn't clear about the file browser, I didnt mean the one for the operating system. I mean't using within php JS etc.
Any further help would be great.