PDA

View Full Version : FTP to subdirectories



cozo
02-21-2008, 05:01 PM
Hi, i'm having a little bit of trouble setting up ftp.. I want to allow ftp access to all the subdirectories of a particular directory. These subdirectories will be generated dynamically and therefore the account cant be configured by hand to access them. It seems that if you configure an account to access a particular directory the subdirectories are not open for uploads.. Any solutions?

felgall
02-21-2008, 05:28 PM
Whichever directory a given FTP user has access to will include any sub-directories within that directory. Any restriction stopping that from happening would be a limitation of the FTP program being used.

cozo
02-21-2008, 05:45 PM
hmmm.. I am confused then. Im actually using a php script to do an upload from a web form via ftp. I have a successful upload with the form if the dump directory is set $ftp_dump_dir="/"; however I am trying to put things into subdirectories of this file somewhere like "/public_html/onlinealps/1" but cant get the script to do this. How should I change the $ftp_dump_dir to do that?