>I'm assuming this situation: for whatever reasons, you
>a need to upload via ftp a file to (presumably) your >account in your ISP.
>If that were the case, then there's no point asking
>for the module list of your ISP... You would instead
>need Net::FTP in your local host, not in your ISP, no?
yess.. that's exactly right. From what ive read at perlmonks, i was under the assumtion that my ISP had to
have net::ftp installed. But yess, i want to upload a
file to form to my ISP automatically when submit is
clicked. If i need to have net:ftp on my local computer, i consider that strange since i have never
had to have any perl modules installed on my own local
PC.. remember, i'm not running a server here.. i have a
single stand alone PC.. and an ISP. Any more advice?
meow..!!
Thanx, Lisa.
| [reply] |
Well, that's what I'm confused about as well...
So is mad-lib or whatever you are using running locally? Is it creating whatever file in your own PC?
Assuming that you are indeed creating a file on your local PC, think about this: how would you upload that file to your account in your ISP manually?
You would use your favorite FTP program on your local PC, and access the FTP server on the ISP's remote server, right? That means
when you upload, you do something from your local machine. The server is what serves you, but it won't initiate the action.
So getting back to wanting to upload to your ISP... if you want to upload a file that's in your local machine using perl, you need to run a perl program in your local machine, which may use Net::FTP. You do something like
## obviously, this code will not work -- it's just pseudocode
use Net::FTP;
my $ftp = Net::FTP->new( 'servername' );
$ftp->login( 'foo', 'passwd' );
$ftp->put( '/path/to/the/file/that/you/want/to/upload' );
$ftp->quit;
And let me stress this again. If you want to UPLOAD, you do this from your local machine, not from your ISP's server!
Did that make sense? | [reply] [d/l] |