Link to home
Start Free TrialLog in
Avatar of PHPGoddess
PHPGoddess

asked on

Upload a whole folder via php, not just one file?

I have a client who thinks their users will want to upload an entire folder of files at once to save time. Assuming I've already set php.conf to handle this large load, how do I even go about doing this? As far as I know the only program that can upload a whole folder is ftp? Is there anyway to integrate php with ftp functions to get this result? Or is there some way for a user to indicate a path to their folder on their hard drive and using a directory listing alogorithm php just loops thru the folder on the clien'ts machine and uploads each document one at a time until it's done with the appearance of doing it at once to the user? any hacks at all? TIA!
ASKER CERTIFIED SOLUTION
Avatar of laurly
laurly
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of rascalpants
rascalpants
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Amerist
Amerist

Perhaps I was not clear enough.  

step 1.
Zip file gets uploaded to the server using PHP copy() function.

step 2.
Zip file gets FTP'd from the server to another server (if necessary)

step 3.
Zip file gets extracted and directory structure is re-created on target server.

Hope that clears up any confusion.
Avatar of PHPGoddess

ASKER

Thank you everyone, I will spend the next week attempting to implement all of your suggestions and which ever one is the most effective I'll award the points! Thank you!