Page 1 of 1

problem downloading folder

Posted: Tue Nov 22, 2005 3:43 am
by varecha
hi, i would like the admin user of my site to be able to download folders from the domain, for this ive been trying with ftp functions and the ftp wrappers and both work but it seems that there is no way to open a ftp conexion rather than in the domain's root folder, is there a way to ftp connect directly to a subfolder in the domain?

ive been thinking to compress all the files in the folder on to a zip and download it, is this posible? if so, where can i get information?

if anyone knows a good way of downloading the contents of a certain folder it would be greatly appreciated

thanks for your time

Posted: Tue Nov 22, 2005 4:21 am
by Grim...

Posted: Tue Nov 22, 2005 4:47 am
by varecha
i see, so then i can change the current directory and use opendir, readdir and use ftp_get() to download the files it reads, am i right?

thanks for your reply

Posted: Tue Nov 22, 2005 5:50 am
by varecha
i have managed to use ftp_chdir to get to the folder i want, then with ftp_nlist i got the files but when i use ftp_get i get "error opening" the local file, sorry for being so persistent but i have a dead line to stick to and time is running out

Posted: Tue Nov 22, 2005 6:25 am
by varecha
i finally fixed, started again from scratch and the ftp wrappers did the trick, thanks anyway