1q) Do I have to a separate suite of scripts for every user directory -
1a) No, set up a copy of ftp_cfg.pl , modify and call from ftp_files.pl?cfg=new_cfg.pl
2q) For some reason when I call the script it is reading my cgi-bin folder -
2a) NIf it's reading your cgi-bin, you haven't set the $maindir variable in
ftp_cfg.pl - To find out what it should be, download env_var.pl from purpleflash.com ,
run it from your site and look at the returned values.
3 q )I created a subfolder /docs/ftp (and 777 this /docs/ftp subfolder) - I only want clients to be able to ftp to this sub folder only...
not /docs.
How would I set the variables to do this?
3 a)you have your main directory $maindir which is at the level of www and cgi-bin
use
$add_to_home_dir =
"www/sub1/sub2/sub3"; (www or whatever at same level as cgi-bin usually)
$basedir = $maindir.$add_to_home_dir;
$baseurl = "http://purpleflash.com";
$temp = "/sub1/sub2/sub3"; (not necessary on all web sites_) #
$add_to_url="/sub1/sub2/sub3"; (note no www)