in reply to advice about FTP/CGI

I'm not sure I understand exactly what it is you're trying to do, but if I had to do a workaround (via CGI) I'd do the following: The obvious downside to this, is the time required to do multiple file transfers. First you'd need to upload the file to the webserver and then transfer the same file to the FTP server. This could take a while depending on the size of the file!

Of course, I would also check with the server admin if this is a problem (and I would think it is, or else (s)he would have granted FTP access to your users in the first place). Instead of using FTP, I am currently working on a Virtual Filesystem with MySQL, so that users can share and store files via HTTPS. As soon as I finish it, I will be posting the code to the Code Catacombs.

#!/home/bbq/bin/perl
# Trust no1!

Replies are listed 'Best First'.
RE: Re: advice about FTP/CGI
by jlistf (Monk) on Jul 11, 2000 at 20:29 UTC
    i guess that'll work out. ideally, i'd like to provide the users with the same functionality as a direct FTP connection, just limit which files they can alter. if i do that with this method, it could take a real long time to perform a command. (open connection, perform command, get results, close connection, return results)

    the server admin shouldn't have any problem though. the users will all have access through one (my) account. the perl script is just there to limit which files each user can alter. basically the perl script will mimic the permission effects of multiple accounts while still only using one.