I'm trying to find a way to select a folder in PHP. I've checked all the similar questions and they all seem to relate to uploading files, scanning directories and such.
Basically I want a form from a page on my PHP intranet site to have a 'Select folder' button, which then opens the browse window similar to uploading a file however I only want to save the folder location.
So I want my users to be able to browse for a folder, click it and it will just fill the text box with e.g. U:/Projects/Project1
Because all the folders have consistent folder structure, I can use this folder location to generate links by just appending e.g. '/Files/Form.doc' to create 'U:/Projects/Project1/Files/Form.doc'
With my limited knowledge, the only solution I can think of would be to have the users select any file from the directory required e.g. 'U:/Projects/Project1/Test.txt' as a html input with no upload attached and save it as a string, then explode the string as an array by the slashes and remove anything beyond the last slash..
If anyone can think of a solution to this, or knows a library which has this capability it would be greatly appreciated.
EDIT : I have a perfectly working folder path selector that only works in IE - making use of an ActiveX control. My users mostly use chrome so now I am investigating avenues such as the 'ActiveX for Chrome' extension while also looking at alternatives such as VB scripts.