I am trying to create a function to be able to browse a directory, change directories and select a file and be able to store that selection path in a variable for storage in a database. The key for me is to be able to store a path to a directory (no file selection) and also then chose the file, and thus have it's file path available for storage in a DB.
I have come up with ways to list the files in a directory, but what I do not know how to do is create the ability to "BROWSE" the directories. For instance, if I want to upload a file to the server, I want to be able to browse to and choose where I want to upload the file. If I want to add a path to an image to a database, I want to be able to "BROWSE" to the file, select it and have it's path stored in a variable and then it could be stored in the DB.
Again, getting a directory list is not so hard ... browsing seems to be eluding me. I am relatively new to PHP so that might be a clue why ... but hey ... I'm trying
Can someone point me in the right direction?
Dave