Forum Moderators: coopster

Message Too Old, No Replies

ftp entire folder instead of just individual files

         

jackvull

9:22 pm on Jun 4, 2006 (gmt 0)

10+ Year Member



Is there an easy way to ftp an entire folder over to another server in PHP or do you have to create a directory first, then enter it, and recursively copy over files, then move out of the directory, create another one, etc.?

coopster

2:23 pm on Jun 5, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



You could tarball the directory structure first, then ftp it, then decompress it on the other end. Otherwise it is one at a time, as you figured.