using ftp_[functions] and generating local file list
Posted: Wed Feb 09, 2005 10:23 am
I had an epiphany late last night about this project on which I am working. We currently have a "file manager" that resides on the web machine where our users can upload files from their local machines to the web server then use them in their course material (for a LMS). It works fine, but can be quite cumbersome when they need to upload a lot of files (only one at a time kinda thing).
I played a lil' yesterday with the ftp functions and found it quite useful for uploading files to an ftp server. The beauty of it is, I was able to just loop over a file list and have them ALL uploaded in one feld swoop.
so my idea, and forgive if this has already been done and I am just reiterating someone elses gaba, was to create a web interface that when they hit the file manager site, would list their files (locally) in a multiple select box that they could just select the files they want, submit and wholla, they're all uploaded and ready to use.
Of course this stroke of brilliance was met with reality in the morning when I woke up and was driving to work... I realized that php prolly can not list out the files on the user's local machine (it's all server side), but alas I came here seeking help. Can this be done using php? If not can it be done using JS? Has somethign like this already been done and am I just reinventing the wheel?...I don't mind wheel reinvention as I think it helps me learn, but if it has been done, I'd like to at least review the code so I have something with which to work.
Your detailed, considered response will be most greatly apprecieated.
thx in advance,
Burr
I played a lil' yesterday with the ftp functions and found it quite useful for uploading files to an ftp server. The beauty of it is, I was able to just loop over a file list and have them ALL uploaded in one feld swoop.
so my idea, and forgive if this has already been done and I am just reiterating someone elses gaba, was to create a web interface that when they hit the file manager site, would list their files (locally) in a multiple select box that they could just select the files they want, submit and wholla, they're all uploaded and ready to use.
Of course this stroke of brilliance was met with reality in the morning when I woke up and was driving to work... I realized that php prolly can not list out the files on the user's local machine (it's all server side), but alas I came here seeking help. Can this be done using php? If not can it be done using JS? Has somethign like this already been done and am I just reinventing the wheel?...I don't mind wheel reinvention as I think it helps me learn, but if it has been done, I'd like to at least review the code so I have something with which to work.
Your detailed, considered response will be most greatly apprecieated.
thx in advance,
Burr