sammermpc Posted July 10, 2006 Share Posted July 10, 2006 I feel like this should be simple, but I don't know how to do it. I am creating a web database that will have many files contained within large directories that need to be processed. I wrote a PHP parser, processor, ect, that handles this no problem. Now, all I want is for the user to be allowed to SELECT a directory. Like the html [browse...] button, but allowing the user to select a directory. Any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/14224-user-select-a-directory/ Share on other sites More sharing options...
ShogunWarrior Posted July 10, 2006 Share Posted July 10, 2006 I'd go with an AJAX browser that they can click through to get the directory. Quote Link to comment https://forums.phpfreaks.com/topic/14224-user-select-a-directory/#findComment-55871 Share on other sites More sharing options...
sammermpc Posted July 11, 2006 Author Share Posted July 11, 2006 I have to go through all that just to get such simple functionality? I mean, I could practically just have them select a file within a folder, and then chop off the file name. Incredibly clumsy (and unacceptable for this application), but it would work. In any case, the AJAX implementation would depend on sending the right HTTP headers correct? In that case--what are they? Quote Link to comment https://forums.phpfreaks.com/topic/14224-user-select-a-directory/#findComment-56376 Share on other sites More sharing options...
sammermpc Posted July 12, 2006 Author Share Posted July 12, 2006 Any other conventional solutions for this? Or anyone who can point me in the right direction for doing this with AJAX? Quote Link to comment https://forums.phpfreaks.com/topic/14224-user-select-a-directory/#findComment-56868 Share on other sites More sharing options...
akitchin Posted July 12, 2006 Share Posted July 12, 2006 well my naive suggestion would be a select box which you populate with all the directories available. are you asking how to get all the directories available, or do you already have those stored in a database? i'm not too clear on what information you've already got to work with. Quote Link to comment https://forums.phpfreaks.com/topic/14224-user-select-a-directory/#findComment-56870 Share on other sites More sharing options...
sammermpc Posted July 12, 2006 Author Share Posted July 12, 2006 No, I am entering information into a database. This is the problem at hand. A lab group goes out in the field with various instruments--they return a week later with literally hundreds of files from said instruments. They then upload these from their laptops to a central server, which processes them, and stores data (time, date, location, ect...), in a database.The question is, how can I let them simply select their data folders (ie../marine/data/07122006/), and then let the scripts do their work. I have already written the batch processing, and it works if they type in the path by hand. I want them to able to simply use a browse dialogue box, similar to the one <input type="file"..../> uses. Quote Link to comment https://forums.phpfreaks.com/topic/14224-user-select-a-directory/#findComment-56889 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.